forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Menu): handle pseudo-element bounds in trigger click detection
- Add getPseudoElementPadding utility to compute ::before/::after dimensions - Refactor mouseup handler to check extended clickable area - Update click detection logic to include pseudo-element padding - Improve trigger bounds calculation for more accurate click handling Fixes mui#1232 - Prevents menu from closing unexpectedly when clicking within the pseudo-element extended area of the trigger.
- Loading branch information
1 parent
d9ef5c6
commit 4c17eea
Showing
1 changed file
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters