Closed m-jojo-s closed 2 years ago
Yeah, the problem here is the DOM node is created but not yet appended to the parent. You can defer the removal via setTimeout but that will still trigger the image activation. Probably I'll move that event once the node is appended.
GrapesJS version
What browser are you using?
Chrome Version 98.0.4758.80 (Official Build) (arm64)
Reproducible demo link
https://jsfiddle.net/Lsjhxczp/10/
Describe the bug
How to reproduce the bug?
What is the expected behavior? The new component gets removed, both model and view.
What is the current behavior? Only the model is removed, view stays in place and isn't re-rendered after removal.
If is necessary to execute some code in order to reproduce the bug, paste it here below:
Code of Conduct