code optimize
code optimize
This commit is contained in:
parent
e08e73bbc5
commit
094451ef5d
3 changed files with 4 additions and 8 deletions
|
|
@ -89,7 +89,7 @@ export default {
|
|||
document.getElementById(this.modalId)?.focus();
|
||||
},
|
||||
resetButtonStyle() {
|
||||
this.$refs.modalButtonMain.resetButtonStyle();
|
||||
this.$refs.modalButtonMain?.resetButtonStyle();
|
||||
},
|
||||
onModalOpened() {
|
||||
this.onModalOpenedCallback?.();
|
||||
|
|
|
|||
|
|
@ -498,13 +498,6 @@ export default {
|
|||
this.updateFooterButtonText(newValue);
|
||||
},
|
||||
},
|
||||
unmounted() {
|
||||
// remove modal backdrop if one exists
|
||||
let modalBackground = document.querySelector(".modal-backdrop");
|
||||
if (modalBackground) {
|
||||
modalBackground.remove();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
funnelHeader,
|
||||
navbar,
|
||||
|
|
|
|||
|
|
@ -494,6 +494,9 @@ export default {
|
|||
};
|
||||
},
|
||||
},
|
||||
unmounted() {
|
||||
if (this.isModalOpened) this.closeModal();
|
||||
},
|
||||
watch: {
|
||||
modelValue: {
|
||||
handler(newValue) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue