mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.89k stars 32.26k forks source link

MUI Context Menu should close on onPointerDown, not onClick #43405

Open khokm opened 2 months ago

khokm commented 2 months ago

Steps to reproduce

No response

Current behavior

No response

Expected behavior

No response

Context

In this example context menu should close on mouse key down (on backdrop, not item), not waiting for it's release - this is how all typical context menus (in Windows, Chrome) behave. Are there any ways to achieve such behavior?

Your environment

No response

Search keywords: Menu Context Menu

siriwatknp commented 2 months ago

Seems like it's not possible at the moment because the onClose reason supports only "backdropClick".