Innologica / vue2-daterange-picker

Vue2 date range picker
https://innologica.github.io/vue2-daterange-picker/
MIT License
329 stars 208 forks source link

If single-date-picker is set to range, only one time picker is displayed #257

Open mynameyj opened 3 years ago

mynameyj commented 3 years ago

If single-date-picker is set to range, only one time picker is displayed, but it seems that start and end time picker should appear together. I can't find a way, can you tell me?

스크린샷 2021-06-11 오전 9 30 15
PerpetualWar commented 3 years ago

this seems to be the bug as for me also if you choose single picker with range, it does not allow range. @nkostadinov any info on this?

julienperrault commented 2 years ago

We should add the piece of code that displays the end timePicker like this to line 108 of the "DateRangePicker.vue" file (style adjustment probably needed).

(I added an additional condition of existence of "singleDatePicker = true")

<calendar-time v-if="timePicker && end && singleDatePicker"
  @update="onUpdateEndTime"
  :miniute-increment="timePickerIncrement"
  :hour24="timePicker24Hour"
  :second-picker="timePickerSeconds"
  :current-time="end"
  :readonly="readonly"
/>