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

Commit 93b446d

Browse files
committed
fix: Error when selecting time in solo mode
1 parent 19847ba commit 93b446d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Vue3DatePicker/components/TimePicker/TimePicker.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
}));
167167
168168
const getEvent = (event: number, index: number, property: 'hours' | 'minutes' | 'seconds') => {
169+
if (!props.range) {
170+
return event;
171+
}
169172
if (index === 0) {
170173
return [event, timeInputs.value[1][property]];
171174
}

0 commit comments

Comments
 (0)