menu not closed after route changed on mobile
comfuture opened this issue · 1 comments
comfuture commented
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 commented
Having the same issue..
Any updates?