patternfly-react icon indicating copy to clipboard operation
patternfly-react copied to clipboard

Bug - [DropDown] - [Dropdown menu does not close close on right click]

Open jelly opened this issue 4 months ago • 2 comments

Describe the problem

We have a kebabmenu (MenuToggle) when right clicking outside of the dropdown menu it does not close while a left mouse click does close it.

This becomes a bit more of an issue as our application handles the "contextmenu" right click by showing a menu. See https://github.com/cockpit-project/cockpit-files/issues/270 for more details.

How do you reproduce the problem?

  • Go to https://www.patternfly.org/components/menus/dropdown/#basic-dropdowns
  • Right click on a part of the page

Expected behavior

Should a Dropdown menu not close when right clicking? Or is this too specific for PatternFly to handle.

Is this issue blocking you?

We can workaround the issue by handling a "contextmenu" ourself.

Screenshots

Image

What is your environment?

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

What is your product and what release date are you targeting?

Cockpit-files, no release date we release bi-weekly :)

Any other information?

jelly avatar Jun 06 '25 14:06 jelly