Skip to content

[menu] Trigger onClick is not called #1965

@OliverJAsh

Description

@OliverJAsh

Bug report

Current behavior

      <Menu.Trigger
        className={styles.Button}
        onClick={() => {
          console.log("clicked trigger");
        }}
      >
        Song <ChevronDownIcon className={styles.ButtonIcon} />
      </Menu.Trigger>

onClick is never called.

Expected behavior

onClick is called.

Reproducible example

https://codesandbox.io/p/sandbox/vigorous-tree-nl9y5q?file=%2Fsrc%2FApp.tsx%3A17%2C46

Base UI version

1.0.0-alpha.8

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Which assistive tech are you using (if applicable)?

Voiceover/JAWS etc.

Additional context

Provide any additional context that might help us identify the problem and find a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: menuChanges related to the menu component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.type: bugIt doesn't behave as expected.

    Projects

    Status

    Recently completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions