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

Allow timepicker to have range dates in reverse order #57

Closed
Nemega opened this issue May 27, 2022 · 4 comments
Closed

Allow timepicker to have range dates in reverse order #57

Nemega opened this issue May 27, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Nemega
Copy link

Nemega commented May 27, 2022

First of all thank you for providing such a nice component.

I would very much appreciate if I could do the following in timepicker:

20:00 - 04:00 (from 8pm to the next day until 4am)

In short it does not allow me to have Time A > Time B
You can actually force it with textinput prop (might not be intended, let me know if I should open an issue for that)

Best Regards

@Nemega Nemega added the enhancement New feature or request label May 27, 2022
@Jasenkoo
Copy link
Contributor

I don't know, this happens because it is the same date in range. If you set one for today and one for tomorrow, you can select the needed time

@Nemega
Copy link
Author

Nemega commented May 30, 2022

Exactly! The issue being in Timepicker you can only select a time, not a date.
The use case would be for example setting up a daily night shift that starts at 20:00 and ends at 4:00. A Datetimepicker would only do the job for one day while it would be useful to have it every day, therefore the use of Timepicker instead.

Thank you very much for taking the time to read my request. It would be nice to have a prop giving us more control over this date order check in range mode, at least for the Timepicker.

@Jasenkoo
Copy link
Contributor

Ok, will add an option to disable this behavior.

@Nemega
Copy link
Author

Nemega commented Jun 3, 2022

Awesome! Thank you very much. Looking forward to the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants