Commit 92907759 authored by Agate's avatar Agate 💬

Fixed modal focus trap

parent f6a81a9e
......@@ -43,7 +43,6 @@ export default {
}.bind(this),
onHidden: function () {
this.$emit('update:show', false)
this.focusTrap.pause()
}.bind(this),
onVisible: function () {
this.focusTrap.activate()
......@@ -59,11 +58,15 @@ export default {
this.initModal()
this.$emit('show')
this.control.modal('show')
this.focusTrap.activate()
this.focusTrap.unpause()
} else {
if (this.control) {
this.$emit('hide')
this.control.modal('hide')
this.control.remove()
this.focusTrap.deactivate()
this.focusTrap.pause()
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment