I know that has been solved in some threads already, but my problem is a bit different, because I do not open the modal via a button but by using a JS.
jQuery ( document ).on(“click touchend”, “#mapleft .mapsvg-marker”, function(e) {
e.preventDefault();
jQuery("#details-left-anchor-toggle").click();
} );
When I activate the “Load / reset on element toggle” at the modal, the contents (dynamic iframe content) are not loaded at all using the JS. And if I deactivate the “Load / reset on element toggle” it loads the content but the videos keep playing (audio only) in the background after closing the modal until another modal is opened using the same method.
Anything I can add to the JS or to the close button of the modal to initiate a reset of the modal without activating “Load / reset on element toggle”?
Best regards