-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: restore filter operator after clearing on filter dropdown #3224
chore: restore filter operator after clearing on filter dropdown #3224
Conversation
🦋 Changeset detectedLatest commit: d6bba66 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for refine-doc-live-previews ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Explain the details for making this change. What existing problem does the pull request solve?
By default, "Clear" action from Filter Dropdown is handled by Ant Design by removing filter column value out from list filter. If there is a new value on the filter column again, the mapping has no context on initial filters to restore correct operator.
By providing a map of initial filters, mapping new filters can restore operator in case previous filters is empty or no data on target filter column.
Test plan (required)
{ field: 'title', operator: 'contains', value: '' }
Closing issues
closes #1386
Self Check before Merge
Please check all items below before review.