refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.99k stars 1.97k forks source link

fix(antd): filtering dates on table does not work with syncWithLocation #5980

Closed alicanerdurmaz closed 1 month ago

alicanerdurmaz commented 1 month ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Filtering <Table /> with <FilterDropdown /> and <DatePicker /> doesn't work with syncWithLocation. #5933

What is the new behavior?

Added rangePickerFilterMapper utility function to convert selectedKeys to satisfy both the Refine(data provider, syncWithLocation etc.) and <DatePicker.RangePicker />.

fixes #5933

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 7e746f9b88e40f05075add6be0b1c73a340da4ab

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | @refinedev/antd | Patch |

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

cypress[bot] commented 1 month ago

Passing run #11125 ↗︎

0 169 26 0 Flakiness 0

Details:

Merge 868c28e6828e660809fe26c354ec4fbdb74e83ef into d0ace600bacadc22b749bc8f479d...
Project: refine Commit: 62a0e40c6b ℹ️
Status: Passed Duration: 16:44 💡
Started: May 23, 2024 5:10 PM Ended: May 23, 2024 5:27 PM

Review all test suite changes for PR #5980 ↗︎