Skip to content

Commit

Permalink
Fix child render in wrapper after drop a component (#204)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Monnier <[email protected]>
  • Loading branch information
olivmonnier and oliviermonnier authored Sep 28, 2020
1 parent df8dce3 commit 7cd9b49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export default (editor, { dc, coreMjmlModel, coreMjmlView }) => {
getChildrenSelector() {
return 'table tr td';
},

init() {
coreMjmlView.init.call(this);
this.listenTo(this.model.get('components'), 'add remove', function() {
this.getChildrenContainer().innerHTML = this.model.get('content');
this.renderChildren();
});
},
}
});
};

0 comments on commit 7cd9b49

Please sign in to comment.