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

Commit

Permalink
fix: Seconds not working in range mode (fixes #95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Feb 8, 2022
1 parent 2e02b11 commit b1d209e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Vue3DatePicker/components/TimePicker/TimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
<TimeInput
:hours="hours[0]"
:minutes="minutes[0]"
:seconds="seconds[0]"
v-bind="timeInputProps"
@update:hours="updateHours([$event, hours[1]])"
@update:minutes="updateMinutes([$event, minutes[1]])"
@update:seconds="updateSeconds([$event, seconds[1]])"
>
<template v-for="(slot, i) in timeInputSlots" #[slot]="args" :key="i">
<slot :name="slot" v-bind="args" />
Expand All @@ -60,9 +62,11 @@
<TimeInput
:hours="hours[1]"
:minutes="minutes[1]"
:seconds="seconds[1]"
v-bind="timeInputProps"
@update:hours="updateHours([hours[0], $event])"
@update:minutes="updateMinutes([minutes[0], $event])"
@update:seconds="updateSeconds([seconds[0], $event])"
>
<template v-for="(slot, i) in timeInputSlots" #[slot]="args" :key="i">
<slot :name="slot" v-bind="args" />
Expand Down

0 comments on commit b1d209e

Please sign in to comment.