Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Dropdown menu closes on right click in Firefox #5051

Closed
thomassuckow opened this issue Dec 11, 2015 · 0 comments
Closed

Dropdown menu closes on right click in Firefox #5051

thomassuckow opened this issue Dec 11, 2015 · 0 comments

Comments

@thomassuckow
Copy link

In Firefox, the dropdown menu closes immediately after opening if it is triggered by a right click (contextmenu event) because Firefox sends a click event to the document object despite no other browser doing this.

It would be preferable to check if the click event has evnt.which === 3 and if so not close the menu. That way it behaves the same on all browsers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants