CASH-124: fix bug with unmounted hook
This commit is contained in:
parent
774f01b638
commit
47586b5816
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ export default {
|
||||||
modalWidgetName: String,
|
modalWidgetName: String,
|
||||||
pageName: String,
|
pageName: String,
|
||||||
},
|
},
|
||||||
|
unmounted() {
|
||||||
|
// remove any modal effects before leaving page (e.g. user hits browser back button)
|
||||||
|
this.modal.closeModal();
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
buttonText() {
|
buttonText() {
|
||||||
return this.getCmsContent(this.modalWidgetName, "SubheaderText");
|
return this.getCmsContent(this.modalWidgetName, "SubheaderText");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue