Closed
Description
Describe the bug
I have datepicker with time-picker, start-time prop and clear button. If date is setted and time doesn't corresponds to start-time and user clears value then time resets to start-time only after close calendar menu.
To Reproduce
Steps to reproduce the behavior:
- Create datepicker with start-time = [{hours: 0, minutes: 0, seconds: 0}, {hours: 23, minutes: 59, seconds: 59}]
- Set datetime: 2024.11.12 12:59:59 - 2024.11.20 22:11:00.
- Clear value on button.
- Dates are empty, time is 12:59:59 - 22:11:00 (in time-picker) ❌
5*. Expects: Dates are empty, time is 00:00:00 - 23:59:59. (in time-picker) ✅. - Close calendar.
- Open calendar.
- Dates are empty, time is 00:00:00 - 23:59:59. (in time-picker).
Expected behavior
I want to have opportunity to reset time to start-time.
Desktop & mobile (please complete the following information):
- Browser all
- Library version 10.0.0