Skip to content

Commit

Permalink
fix enter on DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFyon committed Dec 6, 2024
1 parent 188e735 commit f1a5a1d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ export default defineComponent({
this.updateMessages()
}
},
handleEnter() {
this.$emit('update:modelValue', this.textFieldValue)
},
isWeekend(date: Date) {
const dayOfWeek = date.getDay()
return dayOfWeek === 0 || dayOfWeek === 6
Expand Down Expand Up @@ -318,6 +321,7 @@ export default defineComponent({
}
"
@click:clear="onClear"
@keydown.enter="handleEnter"
>
<template v-if="iconSlotName" #[iconSlotName]>
<VIcon
Expand Down

0 comments on commit f1a5a1d

Please sign in to comment.