Skip to content

Commit 884d45a

Browse files
committed
fix: set clickOutsideDeactivates
Signed-off-by: grnd-alt <git@belakkaf.net>
1 parent e99d5fb commit 884d45a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/NcAppNavigation/NcAppNavigation.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ export default {
249249
250250
this.focusTrap = createFocusTrap(this.$refs.appNavigationContainer, {
251251
allowOutsideClick: true,
252+
clickOutsideDeactivates: () => {
253+
if (this.isMobile) {
254+
this.focusTrap.deactivate({ returnFocus: false })
255+
this.toggleNavigation(false)
256+
}
257+
return false
258+
},
252259
fallbackFocus: this.$refs.appNavigationContainer,
253260
trapStack: getTrapStack(),
254261
escapeDeactivates: false,

0 commit comments

Comments
 (0)