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

Panel with NavigationTree does not close on Navigation #2098

Open
nerdnum opened this issue Sep 1, 2024 · 0 comments
Open

Panel with NavigationTree does not close on Navigation #2098

nerdnum opened this issue Sep 1, 2024 · 0 comments
Labels
bug Something isn't working pro triage

Comments

@nerdnum
Copy link

nerdnum commented Sep 1, 2024

Environment

Version

v2.18.4

Reproduction

https://stackblitz.com/~/github.com/nerdnum/projectx-frontend-v3

@moshetanzer , I tagged you as you requested on Discord. Please let me know if you can access the link. It is my first time creating something on stackblitz, and I am not sure how access is managed.

The panel behaves the same on Stackblitz as on my development machine. The panel does not close.

Description

I am using Nuxt-UI Pro. I provide a NavigationTree (using "label" and "to" in the links tree) to the panel slot of the Header component. When the screen with is less than 1024px, as expected, the NavigationTree is displayed when one clicks on the hamburger icon. When one clicks on one of the links in the tree, the application navigates to the new URL, but it does not close the panel as expected. One has to click on the 'x' to close the panel.

This differs from the behaviour of the Nuxt-ui documentation site (https://ui.nuxt.com/pro/components/header), which closes the panel and does the navigation. I cannot find anything about closing the panel with code in the documentation.

It behaves the same in chrome, edge and firefox.

Disabling SSR does not make a difference.

Additional context

No response

Logs

No response

@nerdnum nerdnum added bug Something isn't working triage labels Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pro triage
Projects
None yet
Development

No branches or pull requests

2 participants