[Question] Modal destroy contents on close
Question
Hello,
I'm using the modal with some commands. I've noticed when calling modal.setContent( ... ) what ever was in the modal before is moved to a hidden div with class gjs-mdl-collector .
Is there a way to destroy the content on close? Or should I just remove the content .innerHTML('') before closing?
Thanks, Antonio
Answers (1)
If you don't need those references you can clean them manually
Related Questions and Answers
Continue research with similar issue discussions.
Issue #829
[QUESTION] "Hidden feature"?
Hello @artf . I was implementing modal of AssetsManager and I found it: Is it some "feature" or something else that wasn't completely imple...
Issue #1066
[QUESTION] Get content with inline CSS
I've been looking for some explanation and I found that some email clients blocks CSS... I would like to know if is there some way to get e...
Issue #1158
[Question] Is there some way to know last time was stored?
I'm using autosave option in storeManager and I would like to know if is there some way to get last time content was stored
Issue #2029
[Question/Bug] grapesjs throws a DOMException if you import HTML contents with invalid (numbered) attributes
Hi @artf , We got a report that when you import some HTML code with incorrect attributes, such as <td class="cell" 01234="0" >Hello world!...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.