Skip to content

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

@aquaductape

Description

@aquaductape

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions