-
-
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
[data grid] Checkbox selection is keeping selection when filtering #11726
Comments
Hey @experimarketing and thanks for raising this issue. |
@michelengelen can I take a look at this issue ? |
@jyash97, I've already addressed and fixed the issue. If it's acceptable, may I proceed with this resolution? My apologies for not providing an update before picking it up @michelengelen |
@g1mishra feel free to open a PR with your solution. Looking forward to it! |
Just one update on this that I noticed when I was using it again. This is likely the same issue, but wanted to mention this reproduction of the issue. Steps:
The selection model now contains 7 rows selected, when it should have none selected. |
How did we do @experimarketing? |
Steps to reproduce
Link to live example: (required): https://codesandbox.io/p/sandbox/relaxed-knuth-npz6j7
Steps:
Current behavior
It selects items which don't pass the filter criteria.
Expected behavior
After you have applied the filter, cleared the checkboxes, and check them again, it should only select the filtered items.
That is the default behavior. But it seems to be an issue if apply the checkbox before the filter.
Context
It just provides an inconsistent experience, which could introduce errors if someone doesn't notice that more is selected than filtered.
Your environment
npx @mui/envinfo
Search keywords: datagrid checkbox selection
Order ID: 73295
The text was updated successfully, but these errors were encountered: