Skip to content
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

autoSort prop for DateRangePicker component #3225

Open
Alessandro-Polcini opened this issue May 31, 2023 · 1 comment
Open

autoSort prop for DateRangePicker component #3225

Alessandro-Polcini opened this issue May 31, 2023 · 1 comment

Comments

@Alessandro-Polcini
Copy link

Related to this issue

DateRangePicker improvement

A prop called autoSort or autoSortRanges could be added to DateRangePicker in order to enable/disable automatic sorting of date ranges.
The prop could be set to true by default so as not to break/alter the current behavior of the component, but by passing autoSortRanges={false} the dates written in the textbox do not get automatically sorted, so that if a user writes olderDate ~ newerDate they see olderDate ~ newerDate in the textbox.

@SevenOutman
Copy link
Member

Hi @Alessandro-Polcini, I've read the other issue and posted my thoughts there. Let's find out what we expect from the DateRangePicker so that we could decide whether to add this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants