Skip to content

Commit

Permalink
Merge pull request #5827 from sruthyqb/fix--tiered-menu-popup-not-clo…
Browse files Browse the repository at this point in the history
…sing-on-escape

fix: tiered menu popup not closing on escape
  • Loading branch information
tugcekucukoglu committed Jun 7, 2024
2 parents d602b12 + 3ca2358 commit a3782c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/tieredmenu/TieredMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export default {
this.onEnterKey(event);
},
onEscapeKey(event) {
if (this.focusedItemInfo.level !== 0) {
if (this.popup || this.focusedItemInfo.level !== 0) {
const _focusedItemInfo = this.focusedItemInfo;
this.hide(event, false);
Expand Down

0 comments on commit a3782c7

Please sign in to comment.