Issue #2809Opened May 29, 2020by antman33510 reactions

[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)

artfJune 17, 20200 reactions

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

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.