From 884d45a9b60e354fb5c2755c2033a50ea335fd31 Mon Sep 17 00:00:00 2001 From: grnd-alt Date: Mon, 9 Mar 2026 15:33:13 +0100 Subject: [PATCH] fix: set clickOutsideDeactivates Signed-off-by: grnd-alt --- src/components/NcAppNavigation/NcAppNavigation.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/NcAppNavigation/NcAppNavigation.vue b/src/components/NcAppNavigation/NcAppNavigation.vue index 04bdfbfa37..c718d01107 100644 --- a/src/components/NcAppNavigation/NcAppNavigation.vue +++ b/src/components/NcAppNavigation/NcAppNavigation.vue @@ -249,6 +249,13 @@ export default { this.focusTrap = createFocusTrap(this.$refs.appNavigationContainer, { allowOutsideClick: true, + clickOutsideDeactivates: () => { + if (this.isMobile) { + this.focusTrap.deactivate({ returnFocus: false }) + this.toggleNavigation(false) + } + return false + }, fallbackFocus: this.$refs.appNavigationContainer, trapStack: getTrapStack(), escapeDeactivates: false,