Skip to content

Commit

Permalink
Merge pull request #350 from pulibrary/luxmenubar-dropdown-esc
Browse files Browse the repository at this point in the history
[LuxMenuBar] closes dropdowns when you press esc
  • Loading branch information
sandbergja authored Sep 20, 2024
2 parents 69da4cc + 3470b41 commit c3f17cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/LuxMenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
class="lux-submenu-toggle"
:data-method="item.method"
@click="setActiveItem(index)"
@keydown.esc="activeItem ? setActiveItem(index) : 'false'"
>
<lux-menu-bar-label :item="item"></lux-menu-bar-label>
</button>
Expand Down

0 comments on commit c3f17cb

Please sign in to comment.