Merge pull request #4733 from FlipWarthog/PV4732

Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar
pull/4753/head
Tuğçe Küçükoğlu 2023-11-03 10:57:13 +03:00 committed by GitHub
commit b3d86ba99f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

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