Skip to content

[Bug] Don't reset time for clear event #1048

Closed
@cotowamasha

Description

@cotowamasha

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:

  1. Create datepicker with start-time = [{hours: 0, minutes: 0, seconds: 0}, {hours: 23, minutes: 59, seconds: 59}]
  2. Set datetime: 2024.11.12 12:59:59 - 2024.11.20 22:11:00.
  3. Clear value on button.
  4. 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) ✅.
  5. Close calendar.
  6. Open calendar.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions