Skip to content

Commit 582d23a

Browse files
committed
fix: typecheck
1 parent c32408a commit 582d23a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/vue/src/components/date-picker/examples/with-time.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ const formattedValue = computed(() => {
2626
return v ? formatter.format(v.toDate(getLocalTimeZone())) : 'Select date and time'
2727
})
2828
29-
const onTimeChange = (e: Event & { currentTarget: HTMLInputElement }) => {
30-
const [hours, minutes] = e.currentTarget.value.split(':').map(Number)
29+
const onTimeChange = (e: Event) => {
30+
const target = e.target as HTMLInputElement
31+
const [hours, minutes] = target.value.split(':').map(Number)
3132
const current = value.value[0] ?? new CalendarDateTime(2025, 1, 1, 0, 0)
3233
value.value = [current.set({ hour: hours, minute: minutes })]
3334
}

0 commit comments

Comments
 (0)