Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar
parent
03732ab3f8
commit
3734c1b96c
|
@ -2646,8 +2646,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:
|
||||||
|
|
Loading…
Reference in New Issue