Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Time can still be changed when the date is fixed #103

Closed
ghost opened this issue Feb 18, 2022 · 0 comments
Closed

Time can still be changed when the date is fixed #103

ghost opened this issue Feb 18, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

Describe the bug
When using fixedStart or fixedEnd the time picker still allows to customize the time of the fixed date. In this case, it should either block the time selection, or a second prop such as fixedStartTime/fixedEndTime would be appreciated. The time input should then be disabled or hidden altogether.

To Reproduce
Steps to reproduce the behavior:

  1. Create a datetimepicker component
  2. Set the range=true & fixedStart=true prop
  3. Open the time selector
  4. It is now possible to customize the start time

Expected behavior
It should not be possible to customize the time of either end when it is fixed. The time inpit should either be disabled or hidden. (Disabled would be more in line with how the date selection works, but hdden might be a bit cleaner in the UI)

Screenshots
Bildschirmfoto 2022-02-18 um 16 55 12

Desktop (please complete the following information):

  • OS: macos 12.2.1
  • Browser: Google Chrome
  • Version: 98.0.4758.102 (Official Build) (x86_64)

Additional context
n/a

@Jasenkoo Jasenkoo added the bug Something isn't working label Feb 18, 2022
@Jasenkoo Jasenkoo added this to the v2.7.0 milestone Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant