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

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

Open
cotowamasha opened this issue Nov 20, 2024 · 0 comments
Open

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

cotowamasha opened this issue Nov 20, 2024 · 0 comments
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working

Comments

@cotowamasha
Copy link

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
@cotowamasha cotowamasha added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant