-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Two filters are not applied to List when disableSyncWithLocation
is true
#9190
Comments
Reproduced, thanks |
Actually no, if I follow your steps, I can't reproduce. I get:
|
The order you apply filters is important - first apply a filter in Filters context menu ("Commentable"), then - "Has Code Tag". If you apply "Commentable", then "Has Code Tag", then remove and re-apply "Commentable" the filtler value passed to the data provider will be correct. |
Actually I can reproduce by following the steps order. select "Commentable" filter logs
and then click on "Has Code Tag" filter logs
Doing this by reversing the steps order will produce the right behavior
|
Indeed, must have done the reverse |
What you were expecting:
I have
BooleanInput
filter andQuickFilter
in myfilters
for List:The List has
disableSyncWithLocation
enabled.When I apply "Commentable" filter first, then apply "Has Code tag" filter, the data provider
getList
method should receive both filter values:{ commentable: true, hasCodeTag: true }
.What happened instead:
Data provider
getList
method receives only one filter value:{ hasCodeTag: true }
.Steps to reproduce:
Related code:
https://stackblitz.com/edit/github-4uscjv?file=src%2Fposts%2FPostList.tsx
PostList.tsx
dataProvider.tsx
Environment
The text was updated successfully, but these errors were encountered: