Vuepic/vue3-date-time-picker

Start time can be after end time when start and end day are the same

Opened this issue · 0 comments

Describe the bug
When using range and the start date is on the same day as the end date, the time picker allows to select a time on the start date that is after the time of the end date.

To Reproduce
Steps to reproduce the behavior:

  1. Create a datetimepicker component
  2. Set the range=true prop
  3. Set a start & end date on a same day
  4. Open the time selector
  5. It is now possible to set the start time after the end time

Expected behavior
It should not be possible to select a start time on the same day as the end day that is after the end time.

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