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:
Josh Dassinger 2024-04-29 16:29:27 -05:00 committed by GitHub
commit 0970b612eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,10 @@ export default {
openModal() {
const modal = Modal.getOrCreateInstance(document.getElementById(this.modalId));
modal?.show();
this.isOpen = true;
setTimeout(() => {
this.isOpen = true;
}, 10);
this.$emit('isModalOpened', true);
},
closeModal() {