Vuepic / vue3-date-time-picker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
158 stars 13 forks source link

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

Closed ghost closed 2 years ago

ghost commented 2 years ago

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):

Additional context n/a