Skip to content

Commit

Permalink
Fixed #4167
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jul 20, 2023
1 parent c007c93 commit 7eb405d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/lib/overlaypanel/OverlayPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export default {
},
hide() {
this.visible = false;
DomHandler.focus(this.target);
},
onContentClick() {
this.selfClick = true;
Expand Down Expand Up @@ -160,7 +159,10 @@ export default {
}
},
onContentKeydown(event) {
event.code === 'Escape' && this.hide();
if (event.code === 'Escape') {
this.hide();
DomHandler.focus(this.target);
}
},
onButtonKeydown(event) {
switch (event.code) {
Expand Down

0 comments on commit 7eb405d

Please sign in to comment.