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

Commit b1d209e

Browse files
committed
fix: Seconds not working in range mode (fixes #95)
1 parent 2e02b11 commit b1d209e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Vue3DatePicker/components/TimePicker/TimePicker.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@
4949
<TimeInput
5050
:hours="hours[0]"
5151
:minutes="minutes[0]"
52+
:seconds="seconds[0]"
5253
v-bind="timeInputProps"
5354
@update:hours="updateHours([$event, hours[1]])"
5455
@update:minutes="updateMinutes([$event, minutes[1]])"
56+
@update:seconds="updateSeconds([$event, seconds[1]])"
5557
>
5658
<template v-for="(slot, i) in timeInputSlots" #[slot]="args" :key="i">
5759
<slot :name="slot" v-bind="args" />
@@ -60,9 +62,11 @@
6062
<TimeInput
6163
:hours="hours[1]"
6264
:minutes="minutes[1]"
65+
:seconds="seconds[1]"
6366
v-bind="timeInputProps"
6467
@update:hours="updateHours([hours[0], $event])"
6568
@update:minutes="updateMinutes([minutes[0], $event])"
69+
@update:seconds="updateSeconds([seconds[0], $event])"
6670
>
6771
<template v-for="(slot, i) in timeInputSlots" #[slot]="args" :key="i">
6872
<slot :name="slot" v-bind="args" />

0 commit comments

Comments
 (0)