Merge pull request #659 from Safelite/defect/digital/SSR-1177.1
SSR-1177 Fix Focus Trap error when initially showing a modal
This commit is contained in:
commit
0970b612eb
1 changed files with 4 additions and 1 deletions
|
|
@ -123,7 +123,10 @@ export default {
|
||||||
openModal() {
|
openModal() {
|
||||||
const modal = Modal.getOrCreateInstance(document.getElementById(this.modalId));
|
const modal = Modal.getOrCreateInstance(document.getElementById(this.modalId));
|
||||||
modal?.show();
|
modal?.show();
|
||||||
|
setTimeout(() => {
|
||||||
this.isOpen = true;
|
this.isOpen = true;
|
||||||
|
}, 10);
|
||||||
|
|
||||||
this.$emit('isModalOpened', true);
|
this.$emit('isModalOpened', true);
|
||||||
},
|
},
|
||||||
closeModal() {
|
closeModal() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue