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 <me@shgk.me>
  • Loading branch information
ShGKme committed Dec 6, 2023
1 parent 1bdb102 commit af1ba1f
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.stop="isMobile && closeSidebar">
<header :class="{
'app-sidebar-header--with-figure': hasFigure,
'app-sidebar-header--compact': compact,
Expand Down

0 comments on commit af1ba1f

Please sign in to comment.