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 a004cad
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 @@ -711,7 +711,10 @@ export default {
allowOutsideClick: true,
fallbackFocus: this.$refs.closeButton,
trapStack: getTrapStack(),
escapeDeactivates: false,
escapeDeactivates: true,
onDeactivate: () => {
this.closeSidebar()
},
})
},
Expand Down

0 comments on commit a004cad

Please sign in to comment.