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 #3367
Modal template
Is there a way for me to modify the template from a compiled state? https://github.com/artf/grapesjs/blob/d3256e621bb43a537213ffcd86b10dc0b...
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
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.