-
-
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] Broken checkbox in Material-UI v5 #1577
Comments
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷 . |
https://codesandbox.io/s/interesting-allen-68o26?file=/src/Demo.tsx Here is a Demo reproducing that bug |
@Fibs7000 Thanks, so the issue is related to the version of Material-UI. Haha, yes, I'm actually surprised to see: We have stopped documenting this signature a long time ago in the core. |
The fix is trivial: mui/material-ui#25871 |
Same exact behavior on the |
@HeavenlyEntity could you open another issue with a reproduction? The demo in https://mui.com/components/data-grid/demo/ uses |
Before I put in an issue what is the version of the grid currently at in the demo @m4theushw ? |
@HeavenlyEntity v5.1.0. |
👍 right on, mine is at |
Yeah still not working I'll put in an issue. But so you guys see whats going on. Yet what is strange is it work when you select the row itself just fine. Removing the prop |
@HeavenlyEntity |
Hey @rave I was able to fix the problem after removing the pro version of another UI library (
Also I had issues with the |
Was there ever a fix for this issue since this its closed? I am on V 5.4 of @mui/material and @mui/x-data-grid and am still experiencing this behavior when using |
It happened in my codebase, was caused by a developer that somewhy resized all the inputs to a very small square, in a global file. // bad global code
input[type='checkbox'] {
width: 15px; // culprit
height: 15px; // culprit
appearance: none;
margin-right: 10px;
background-color: white;
outline: 0;
border: 0;
border-radius: 4px;
box-shadow: none !important;
} Sometimes, it's not the lib... 😬💀 |
When using XGrid with controlled selection selecting works with the checkboxes but unselecting does not.
Current Behavior 😯
When clicking on a selected checkbox, the line stays selected and a console output says that selectionModelChange is triggerd but not changed.
Expected Behavior 🤔
When clicking on a selected checkbox the line should be unselected.
Steps to Reproduce 🕹
Minimal example
Steps:
https://codesandbox.io/s/material-demo-forked-bni8s?file=/demo.tsx
Context 🔦
Does not work with both selectionModel set or unset.
Your Environment 🌎
`npx @material-ui/envinfo`
Order id 💳
#24533
The text was updated successfully, but these errors were encountered: