Skip to content

Commit b823741

Browse files
grnd-altsusnux
authored andcommitted
fix: add fallBackFocus to NcPopover
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
1 parent 375be0d commit b823741

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/NcPopover/NcPopover.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ export default {
482482
}
483483

484484
const el = this.getPopoverContentElement()
485+
el.tabIndex = -1
485486

486487
if (!el) {
487488
return
@@ -495,6 +496,7 @@ export default {
495496
allowOutsideClick: true,
496497
setReturnFocus: this.setReturnFocus,
497498
trapStack: getTrapStack(),
499+
fallBackFocus: el,
498500
})
499501
this.$focusTrap.activate()
500502
},

0 commit comments

Comments
 (0)