Skip to content

Commit

Permalink
fix(NcModal): use additionalTrapElements on init
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Aug 9, 2023
1 parent acbaefc commit 6b14f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcModal/NcModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ export default {
}
// Init focus trap
this.focusTrap = createFocusTrap(contentContainer, options)
this.focusTrap = createFocusTrap([contentContainer, ...this.additionalTrapElements], options)
this.focusTrap.activate()
},
clearFocusTrap() {
Expand Down

0 comments on commit 6b14f10

Please sign in to comment.