-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DataTable: page is not reseted after global filtering #184
Comments
@RushPVA, hello, i tried to reproduce this issue in demo page, but for me it works fine. Please check your browser console log to possible errors. If you are using google chrome, you can add https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi to help you |
try global filter(not column filter) |
i reproduced this issue on the last versions of Firefox and Chrome |
It's happening on https://www.primefaces.org/primereact/#/datatable/filter (version maybe 2.0.0-rc.1) Steps:
Expects: Actual: |
it doesnt work in React >= 16.7. maybe it's a componentWillReceiveProps method deprecation issue? |
Workaround : Add ref in the datatable definition Add this line when the global filter value change |
I have DataTable without lazy loading with pagination and global filter.
If I click to second page and then change filter input to leave only one record in table, then DataTable will not be reseted to the first page. The issue is reproducible on the demo page.
https://www.primefaces.org/primereact/#/datatable/filter
http://prntscr.com/hb64za
The text was updated successfully, but these errors were encountered: