Skip to content
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] Fix checked checkbox when empty rows #1068

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

bigandy
Copy link
Contributor

@bigandy bigandy commented Feb 17, 2021

Fixes #1066

@bigandy bigandy changed the title [DataGrid] Fix checked checkbox when empty rows (#1066) [DataGrid] Fix checked checkbox when empty rows Feb 17, 2021
@oliviertassinari
Copy link
Member

Should we add a test case? One on hand we did it wrong in the first place so it's not obvious that we won't introduce a regression in the future, the test could would also be trivial to write. On the other hand, there is no real complexity, so might not worth our time.

@bigandy
Copy link
Contributor Author

bigandy commented Feb 18, 2021

@oliviertassinari I can do this. Admittedly it's my first attempt but let me know what you think.

@dtassone
Copy link
Member

looks great 👍
Ready to merge?

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! labels Feb 18, 2021
@bigandy bigandy force-pushed the bugfix/checkout-empty-rows branch from 09c10dd to c361a0b Compare February 19, 2021 10:41
@dtassone dtassone merged commit cfe13cc into mui:master Feb 22, 2021
@bigandy bigandy deleted the bugfix/checkout-empty-rows branch February 22, 2021 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Datagrid] Checkbox checked when no rows
4 participants