Remove mounted function in favor of method plus mounted.
This commit is contained in:
parent
4df1b0383d
commit
42c9090662
1 changed files with 6 additions and 1 deletions
|
|
@ -60,11 +60,16 @@ export default {
|
|||
return this.getCmsContent(this.cmsWidgetName, "FooterText");
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
methods: {
|
||||
setupModalEventListener() {
|
||||
const modal = document.querySelector("#" + this.cmsWidgetName);
|
||||
modal.addEventListener("hidden.bs.modal", (event) => {
|
||||
this.$refs.buttonMain.resetButtonStyle();
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.setupModalEventListener();
|
||||
},
|
||||
components: {
|
||||
buttonMain,
|
||||
|
|
|
|||
Loading…
Reference in a new issue