Skip to content

[context menu] Context menu closes when right-clicking a menu item on Windows #3595

@aeonzz

Description

@aeonzz

Bug report

Current behavior

When a context menu is open, right-clicking on an item inside the context menu immediately closes the menu instead of allowing the item to handle the right-click interaction.

The menu closes as if an outside click occurred.

Expected behavior

Right-clicking on a context menu item should not close the parent context menu by default.

The context menu should remain open and allow the item to handle the right-click event (e.g. opening a nested menu or triggering a custom action).

Reproducible example

  • Open a context menu

  • Right-click on one of the context menu items

  • The context menu closes immediately

Base UI version

v1.0.0

Which browser are you using?

Chrome

Which OS are you using?

Windows

None

Voiceover/JAWS etc.

Additional context

None

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions