-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Page size does not reset after clearing a filter when using autoPageSize
#1413
Comments
Can somebody test that it's the same root cause as #1334? Meaning that the fix we did cover this case too? |
Yes I checked it does cover it |
I tested it on material-ui.com and it's broken there. I'm using Post Script: I searched for other issues but I guess I missed the one you linked. Forgive me if this is a duplicate. If so, I can move over there. |
It will be fixed in the next release. |
Thank you. |
Fix released in v4.0.0-alpha.25 |
tyvm |
When using
autoPageSize
with aDataGrid
, if you set a filter and clear it, the page size does not reset.Current Behavior 😯
Let's say I have a DataGrid using autoPageSize with 100 rows, a page size of 20, and 5 pages. If I set a filter that returns 1 row, I will have 1 page with 1 row. If I clear that filter, I now have 100 pages with a page size of 1.
Expected Behavior 🤔
After clearing the filter, I would expect to have 5 pages of 20, just as I started out with when loading the DataGrid.
Steps to Reproduce 🕹
Steps:
Trader Name
field using any one of the populated values for that fieldContext 🔦
I just want the Data Grid to return to the same size it was when it loaded.
Your Environment 🌎
`npx @material-ui/envinfo`
Chrome Version 89.0.4389.114 (Official Build) (x86_64)
The text was updated successfully, but these errors were encountered: