Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu not closed after route changed on mobile #1000

Open
comfuture opened this issue Nov 2, 2023 · 1 comment
Open

menu not closed after route changed on mobile #1000

comfuture opened this issue Nov 2, 2023 · 1 comment

Comments

@comfuture
Copy link

https://github.com/nuxt-themes/docus/blob/main/plugins/menu.ts#L15

The code is written to close when the route changes, but
If the page of nuxtContent changes, the route change event does not occur.

Additional code is required, such as:

const { page } = useContent()
watch([page], close)

Even if I call useMenu().close() directly, it does not close the menu.
This is because it only changes the value of ref<boolean> and not the show value of the actual AppHeaderDialog component.

@shershen08
Copy link

Having the same issue..
Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants