Skip to content

Commit

Permalink
enh(NcAppSidebar): on mobile view close sidebar by ESC
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Dec 11, 2023
1 parent 53ca29d commit 66d0264
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,10 @@ export default {
@after-enter="onAfterEnter"
@before-leave="onBeforeLeave"
@after-leave="onAfterLeave">
<aside id="app-sidebar-vue" ref="sidebar" class="app-sidebar">
<aside id="app-sidebar-vue"
ref="sidebar"
class="app-sidebar"
@keydown.esc.stop="isMobile && closeSidebar()">
<header :class="{
'app-sidebar-header--with-figure': hasFigure,
'app-sidebar-header--compact': compact,
Expand Down

0 comments on commit 66d0264

Please sign in to comment.