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,