Skip to content

Commit

Permalink
Allow click outside for Popover focus trap
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Aug 12, 2022
1 parent 44e5260 commit bbc5699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Popover/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export default {
this.$focusTrap = createFocusTrap(el, {
// Prevents to lose focus using esc key
// Focus will be release when popover be hide
escapeDeactivates: false,
escapeDeactivates: false,,
allowOutsideClick: true,
})
this.$focusTrap.activate()
})
Expand Down

0 comments on commit bbc5699

Please sign in to comment.