-
Notifications
You must be signed in to change notification settings - Fork 1.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: Global filter resets column filters #6663
DataTable: Global filter resets column filters #6663
Comments
I can reproduce your error even with recent 10.8.0 version. I said less buggy because when you erase global filter you get no filter (you need to reapply them) but this might be a desired behavior. |
@Et7f3 so is this not a bug? |
…olumn and global filter Before the outerstate of DataTable was updated with the new global value and applied to column but local column state never bubbled to the outerstate and hence we loose information when global filter enter in action.
@Matthew404-fail So in your reproducer I added line 431:
and I wasn't able to reproduce the issue. You could also update with @melloware it is a documentation bug. The example given doesn't update the filter object. The reproducer was mostly taken for this example. I proposed this PR #6974 |
Describe the bug
The global filter resets column filters.
Reproducer
https://stackblitz.com/edit/jyzjs8?file=src%2FApp.tsx
PrimeReact version
10.6.5
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Filters will be applied together
The text was updated successfully, but these errors were encountered: