From 929077594d27691a0bb3a13d55c068a3edb60c2c Mon Sep 17 00:00:00 2001 From: Agate Date: Mon, 6 Jul 2020 09:57:47 +0200 Subject: [PATCH] Fixed modal focus trap --- front/src/components/semantic/Modal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/src/components/semantic/Modal.vue b/front/src/components/semantic/Modal.vue index 0a93a053e..5ae134b21 100644 --- a/front/src/components/semantic/Modal.vue +++ b/front/src/components/semantic/Modal.vue @@ -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() } } }