Skip to content

Commit 7c5b4b1

Browse files
committed
fix(focus-trap): provide HTMLElement as fallbackFocus
Signed-off-by: Maksim Sukharev <[email protected]>
1 parent 1c63053 commit 7c5b4b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/NcAppSidebar/NcAppSidebar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ export default {
10101010
document.querySelector('#header'),
10111011
], {
10121012
allowOutsideClick: true,
1013-
fallbackFocus: this.$refs.closeButton,
1013+
fallbackFocus: this.$refs.closeButton.$el,
10141014
trapStack: getTrapStack(),
10151015
escapeDeactivates: false,
10161016
})

src/components/NcHeaderMenu/NcHeaderMenu.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export default {
319319
this.focusTrap = createFocusTrap(contentContainer, {
320320
allowOutsideClick: true,
321321
trapStack: getTrapStack(),
322-
fallbackFocus: this.$refs.trigger,
322+
fallbackFocus: this.$refs.trigger.$el,
323323
})
324324
this.focusTrap.activate()
325325
},

0 commit comments

Comments
 (0)