Merge pull request #728 from Safelite/defect/digital/SSR-1340

SSR-1340 Close modals on page navigation
This commit is contained in:
Josh Dassinger 2024-05-31 14:21:34 -05:00 committed by GitHub
commit a723bfa60c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,6 +98,11 @@ export default {
return !this.meta.dirty || !this.meta.valid;
}
},
watch: {
$route(newVal, oldVal) {
this.closeModal();
}
},
methods: {
async validateAndEmit() {
const validationResult = await this.validate();