Skip to content

Commit

Permalink
improve textFieldActivator
Browse files Browse the repository at this point in the history
  • Loading branch information
VachetVirginie committed Sep 17, 2024
1 parent 32e7cca commit e3b572b
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default defineComponent({
const calendar = this.$refs.calendar as ComponentPublicInstance<
typeof VueDatePicker
>
if(!this.noCalendar) {
if(!this.noCalendar && !this.textFieldActivator) {
calendar.toggleMenu()
}
},
Expand All @@ -173,6 +173,14 @@ export default defineComponent({
handleFocusChange(focus: boolean) {
if (!focus) {
this.updateMessages()
} else {
if (this.textFieldActivator) {
if (!this.$refs.calendar) return
const calendar = this.$refs.calendar as ComponentPublicInstance<
typeof VueDatePicker
>
calendar.toggleMenu()
}
}
},
/**
Expand Down

0 comments on commit e3b572b

Please sign in to comment.