From 3734c1b96ca6127edca038ad50e87593cd0dc885 Mon Sep 17 00:00:00 2001 From: FlipWarthog Date: Wed, 1 Nov 2023 14:46:46 -0400 Subject: [PATCH] Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar --- components/lib/calendar/Calendar.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 48d1bbc6dd..96eee01ed6 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -2646,8 +2646,11 @@ export default { onOverlayKeyDown(event) { switch (event.code) { case 'Escape': - this.input.focus(); - this.overlayVisible = false; + if (!this.inline) { + this.input.focus(); + this.overlayVisible = false; + } + break; default: