Skip to content

Commit

Permalink
#210 moved init logic back to mounted(), listen for open event of bas…
Browse files Browse the repository at this point in the history
…eModal to execute the init code
  • Loading branch information
klues committed Dec 5, 2024
1 parent fd4a698 commit d832362
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/vue-components/modals/editElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,14 @@
},
preventDefault(event) {
event.preventDefault();
},
init() {
this.editElementId = this.editElementIdParam;
this.initInternal();
helpService.setHelpLocation('03_appearance_layout', '#edit-modal');
}
}
},
mounted() {
this.baseModal.$on('open', () => {
this.editElementId = this.editElementIdParam;
this.initInternal();
helpService.setHelpLocation('03_appearance_layout', '#edit-modal');
});
},
beforeDestroy() {
helpService.revertToLastLocation();
Expand Down

0 comments on commit d832362

Please sign in to comment.