CASH-124: fix bug with unmounted hook

This commit is contained in:
Adam Caouette 2025-01-17 16:50:25 -05:00
parent 774f01b638
commit 47586b5816

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");