Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar

pull/4733/head
FlipWarthog 2023-11-01 14:46:46 -04:00
parent 03732ab3f8
commit 3734c1b96c
1 changed files with 5 additions and 2 deletions

View File

@ -2646,8 +2646,11 @@ export default {
onOverlayKeyDown(event) { onOverlayKeyDown(event) {
switch (event.code) { switch (event.code) {
case 'Escape': case 'Escape':
if (!this.inline) {
this.input.focus(); this.input.focus();
this.overlayVisible = false; this.overlayVisible = false;
}
break; break;
default: default: