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

[Bug Report][3.6.4] V-Menu Persistent Parent Closed by Child #19780

Closed
noahbare opened this issue May 8, 2024 · 0 comments · Fixed by #19782
Closed

[Bug Report][3.6.4] V-Menu Persistent Parent Closed by Child #19780

noahbare opened this issue May 8, 2024 · 0 comments · Fixed by #19782
Assignees
Labels
C: VOverlay VOverlay T: bug Functionality that does not work as intended/expected
Milestone

Comments

@noahbare
Copy link
Contributor

noahbare commented May 8, 2024

Environment

Vuetify Version: 3.6.4
Vue Version: 3.4.27
Browsers: Chrome 123.0.0.0
OS: Windows 10

Steps to reproduce

  • Create a parent v-menu with persistent set to true and close-on-content-click set to false (activator method does not seem to matter)
  • Inside of this menu, create a new nested menu (in the reproduction link's case a menu to select a date)
  • Notice that when the child menu closes from an outside click, it closes our parent menu, even though it has the persistent prop set to true.

Expected Behavior

If I've set a menu to persistent (defined in the docs as "Clicking outside of the element or pressing esc key will not deactivate it."), then I expect it to remain open even if a child menu closes.

Actual Behavior

Even with persistent set to true on a parent menu, the entire menu closes when a child component is closed via outside click.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

This is similar to #17004 which was fixed by #19239. This fix only addressed clicking on the parent content, but does not account for a parent component being persistent.

@johnleider johnleider self-assigned this May 14, 2024
@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VOverlay VOverlay and removed S: triage labels May 14, 2024
@johnleider johnleider added this to the v3.6.x milestone May 14, 2024
johnleider pushed a commit that referenced this issue May 14, 2024
fixes #19780

Co-authored-by: nbare <nbare@colsa.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VOverlay VOverlay T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants