From 4a2807ea94f101a8b218a5290cf1c6340a7503e2 Mon Sep 17 00:00:00 2001 From: Paul Su Date: Fri, 26 Aug 2022 14:49:57 +0800 Subject: [PATCH] Fixed #2803 inline calendar autofocus when disabledDates changed --- src/components/calendar/Calendar.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 36ddf47c8..5a43aeb62 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -435,6 +435,9 @@ export default { months() { if (this.overlay) { if (!this.focused) { + if (this.inline) { + this.preventFocus = true + } setTimeout(this.updateFocus, 0); } }