Skip to content

Commit

Permalink
Merge pull request #4733 from FlipWarthog/PV4732
Browse files Browse the repository at this point in the history
Fix #4732 - Calendar: Console.Error/Crash when pressing Escape key using Inline Calendar
  • Loading branch information
tugcekucukoglu authored Nov 3, 2023
2 parents 94bc251 + 3734c1b commit b3d86ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2652,8 +2652,11 @@ export default {
onOverlayKeyDown(event) {
switch (event.code) {
case 'Escape':
this.input.focus();
this.overlayVisible = false;
if (!this.inline) {
this.input.focus();
this.overlayVisible = false;
}
break;
default:
Expand Down

0 comments on commit b3d86ba

Please sign in to comment.