Skip to content

Commit 08100af

Browse files
authored
Merge pull request #8284 from nextcloud-libraries/fix/use-outside-click-deactivate
2 parents 6124b36 + bfa53db commit 08100af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/NcAppNavigation/NcAppNavigation.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,13 @@ onMounted(() => {
215215
216216
focusTrap = createFocusTrap(appNavigationContainerElement.value!, {
217217
allowOutsideClick: true,
218+
clickOutsideDeactivates: () => {
219+
if (isMobile.value) {
220+
focusTrap.deactivate({ returnFocus: false })
221+
toggleNavigation(false)
222+
}
223+
return false
224+
},
218225
fallbackFocus: appNavigationContainerElement.value!,
219226
trapStack: getTrapStack(),
220227
escapeDeactivates: false,

0 commit comments

Comments
 (0)