Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Disable focus trap on click outside
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 12, 2022
commit 303e07beba061bf5d6eeb54ea8559ae92e346be0
4 changes: 3 additions & 1 deletion src/components/Modal/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ export default {
const contentContainer = this.$refs.mask
// wait until all children are mounted and available in the DOM before focusTrap can be added
this.$nextTick(() => {
this.focusTrap = createFocusTrap(contentContainer)
this.focusTrap = createFocusTrap(contentContainer, {
allowOutsideClick: true,
})
this.focusTrap.activate()
})
},
Expand Down