Merge pull request #2220 from Safelite/feature/CASH-124

CASH-124: fix bug with unmounted hook
This commit is contained in:
AdamCaouetteSafelite 2025-01-17 16:56:14 -05:00 committed by GitHub
commit 0ff5ce1507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,6 +53,10 @@ export default {
modalWidgetName: String,
pageName: String,
},
unmounted() {
// remove any modal effects before leaving page (e.g. user hits browser back button)
this.modal.closeModal();
},
computed: {
buttonText() {
return this.getCmsContent(this.modalWidgetName, "SubheaderText");