Issue #2809💬 AnsweredOpened May 29, 2020by antman33510 reactions

Modal destroy contents on close

快速解答by artf

If you don't need those references you can clean them manually

Read full answer below ↓

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)

artfJune 17, 2020

If you don't need those references you can clean them manually

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

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.