Skip to content

Commit

Permalink
fix: add closeOnEscape for onContentKeydown
Browse files Browse the repository at this point in the history
  • Loading branch information
kadirboylu committed Oct 30, 2023
1 parent 851103f commit 5e1e7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/overlaypanel/OverlayPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default {
}
},
onContentKeydown(event) {
if (event.code === 'Escape') {
if (event.code === 'Escape' && this.closeOnEscape) {
this.hide();
DomHandler.focus(this.target);
}
Expand Down

0 comments on commit 5e1e7da

Please sign in to comment.