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':
|
||||||
this.input.focus();
|
if (!this.inline) {
|
||||||
this.overlayVisible = false;
|
this.input.focus();
|
||||||
|
this.overlayVisible = false;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue