BUG: Wrapper component breaks when property is changed after deleting child section
- Dominant language
- TypeScript
- Stars
- 716
- Forks
- 251
- PR merge metrics
- No merged PRs in 30d
Description
### GrapesJS version
- [X] I confirm to use the latest version of GrapesJS
### GrapesJS MJML version
- [X] I confirm to use the latest version of GrapesJS MJML
### What browser are you using?
Brave Version 1.70.119 Chromium: 129.0.6668.70
### Reproducible demo link
https://grapesjs.com/demo-mjml
### Describe the bug
**How to reproduce the bug?**
1. Go to the demo mjml page https://grapesjs.com/demo-mjml
2. Drag and drop a wrapper component
3. Delete one section from within the wrapper
4. Select the wrapper and change any of its properties
**What is the expected behavior?**
The property change should be reflected without affecting the child components
**What is the current behavior?**
All the child elements inside the wrapper disappears
https://github.com/user-attachments/assets/d4e7f077-0def-4885-a986-dec2547adb48
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.