GrapesJS / GrapesJS/components-custom-code
BUG: CSS added via custom code persists after custom code component is removed
- Ngôn ngữ chính
- TypeScript
- Star
- 81
- Fork
- 47
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### GrapesJS version
- [X] I confirm to use the latest version of GrapesJS
### What browser are you using?
any
### Reproducible demo link
https://grapesjs.com/demo
### Describe the bug
**How to reproduce the bug?**
1. Add custom code component with HTML + CSS
2. Delete custom code component.
**What is the expected behavior?**
All code should be removed, including CSS
**What is the current behavior?**
custom CSS is **not** being removed, though the rest is.
[gjs.webm](https://github.com/user-attachments/assets/3fbd9a6d-ad0e-4fc6-add8-7cf31ae9293c)
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với bản demo có thể tái hiện tại https://grapesjs.com/demo và lần theo luồng xóa component mã tùy chỉnh sau khi thêm HTML và CSS. Hoàn thành nghĩa là khi xóa component thì CSS tùy chỉnh của nó cũng được xóa, trong khi hành vi xóa HTML và mã khác hiện có vẫn được giữ nguyên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100