CASH-1935: add unmounted fix to modal / remove superfluous other unmounteds no longer needed
This commit is contained in:
parent
454e187b39
commit
29017f7f12
4 changed files with 4 additions and 11 deletions
|
|
@ -160,6 +160,10 @@ export default {
|
||||||
return this.staticBackdrop ? "static" : "true";
|
return this.staticBackdrop ? "static" : "true";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
unmounted() {
|
||||||
|
// remove any modal effects before leaving page (e.g. user hits browser back button)
|
||||||
|
this.closeModal();
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
modalButtonMain,
|
modalButtonMain,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -57,10 +57,6 @@ 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");
|
||||||
|
|
|
||||||
|
|
@ -54,10 +54,6 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.showSaveProgressPopup) this.modal.openModal();
|
if (this.showSaveProgressPopup) this.modal.openModal();
|
||||||
},
|
},
|
||||||
unmounted() {
|
|
||||||
// remove any modal effects before leaving page (e.g. user hits browser back button)
|
|
||||||
this.modal.closeModal();
|
|
||||||
},
|
|
||||||
emits: ["close-save-progress-popup", "save-progress"], // <--- should remove oodles of warnings in dev tools
|
emits: ["close-save-progress-popup", "save-progress"], // <--- should remove oodles of warnings in dev tools
|
||||||
props: {
|
props: {
|
||||||
modelValue: Object,
|
modelValue: Object,
|
||||||
|
|
|
||||||
|
|
@ -548,9 +548,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
unmounted() {
|
|
||||||
if (this.isModalOpened) this.closeModal();
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
waitListRequested(newVal) {
|
waitListRequested(newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue