GrapesJS / GrapesJS/components-custom-code

BUG: CSS added via custom code persists after custom code component is removed

Aperta
#38 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
81
Fork
47
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.