-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Pressing Escape
should close GridColumnHeaderMenu
without errors
#2463
[DataGrid] Pressing Escape
should close GridColumnHeaderMenu
without errors
#2463
Conversation
In |
It would be interesting to dive into why we need the event. |
That is why it is breaking. The comment explanation is 'Prevent triggering the sorting'. This is the commit that introduced the change DanailH@382e84b#diff-ac3c8d72bf2d6735fd89cf6d93298a21dce356400957fac9b93263b7c61eb381R30 |
|
packages/grid/_modules_/grid/components/menu/columnMenu/GridColumnHeaderMenu.tsx
Outdated
Show resolved
Hide resolved
packages/grid/_modules_/grid/components/menu/columnMenu/GridColumnMenuProps.tsx
Outdated
Show resolved
Hide resolved
@oliviertassinari It's working. Its purpose is for when a menu item is clicked it doesn't sort the respective column too. What we could do to not prevent every event is to only call |
@m4theushw Ohh, right, I see. My bad. |
Found a regression that is a quick win.
Currently pressing the
Escape
key when theGridColumnHeaderMenu
is opened results in an error in the console and the menu doesn't close. This PR fixes the broken behavior.