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

MenuBar Issues: Previous closed Menubar dropdown can't open different Menubar instances #544

Open
aquaductape opened this issue Jan 24, 2025 · 0 comments

Comments

@aquaductape
Copy link

aquaductape commented Jan 24, 2025

Describe the bug

3 issues.

  1. Unable to open different Menubar on the first click when previous Menubar was closed via select MenuItem click.
  2. Unable to open different Menubar when there's already expanded Menubar, you have to click trigger button again
  3. When passing Menubar value from an object prop, unable to close controlled Menubar when clicking MenuItem ( for this one checkout git branch issue-with-object-props-value )

Reproducible example Repo
https://github.com/aquaductape/kobalte-menubar-issues/tree/issue-with-object-props-value

To Reproduce
Steps to reproduce the behavior:

To reproduce 1. "Unable to open different Menubar on the first click when previous Menubar was closed via select MenuItem click"

  1. Open Menubar
  2. Close that Menubar via clicking MenuItem
  3. Click different Menubar
  4. Result: different Menubar doesn't open. You have to click it again to open.

To reproduce 2. "Unable to open different Menubar when there's already expanded Menubar, you have to click trigger button again"

  1. Open Menubar
  2. Click different Menubar trigger button
  3. Result: different Menubar doesn't open. You have to click it again to open.

To reproduce 3. "When passing Menubar value from an object prop, unable to close controlled Menubar when clicking MenuItem"

  1. Switch to issue-with-object-props-value branch git checkout issue-with-object-props-value
  2. Open Menubar
  3. Click MenuItem
  4. Result: Menubar closes then reopens.

Desktop (please complete the following information):

  • OS: macos 15.2 (24C101)
  • Browser: Chrome 132.0.6834.111
  • Version: "@kobalte/core": "^0.13.7"
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

1 participant