-
-
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] Don't select the row when clicking on an item in the actions
column type
#2862
Conversation
actions
column typeactions
column type
I'm trying to do the same thing with the expand / collapse column of the Tree Data |
@flaviendelangle This problem comes from here: The idea when this check was added was to ignore any event coming from a portaled component, e.g. a Select. At that time, a cell not in edit mode couldn't have focusable elements inside it, but now we have. This handler should be improved. I opened #2880 to track this. In your case, for the expand/collapse button, you can manually publish the event that triggers the cell navigation: |
Data Grid Pro version 5.4.0 introduced this problem again. Both row click event is activated together with the showMenu. Please take a look into this. We had to lock version in our package.json to 5.2.1 to make it work. |
@NemanjaTck In #3492 we changed to not stop the propagation of click events. This change was to fix #3489. The problem that #2862 fixes is to not mark a row as selected when clicking in action. Despite this change, |
Fixes #891 (comment)
Before: https://codesandbox.io/s/columntypesgrid-material-demo-forked-6codp?file=/demo.tsx
After: https://codesandbox.io/s/columntypesgrid-material-demo-forked-nrrs5?file=/demo.tsx
Click on any item from the last column and check the console.