Merge pull request #4733 from FlipWarthog/PV4732
Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendarpull/4753/head
commit
b3d86ba99f
|
@ -2652,8 +2652,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:
|
||||||
|
|
Loading…
Reference in New Issue