SeNioR- Posted December 1, 2018 Posted December 1, 2018 Hey! I have a question. Is there any way to prevent the div element from disappearing after closing the dialog? Here's my code. <a class="ipsDataItem_title ipsType_break" data-ipsdialog="" data-ipsdialog-content="#FullScreen" data-ipsdialog-fixed="true" data-ipsdialog-size="fullscreen" href="#FullScreen">Full Screen</a> and content. This whole div disappears after closing the data-ipsdialog and shows after reloading page. <div id="FullScreen"> Content </div>
bfarber Posted December 3, 2018 Posted December 3, 2018 No, there is no way to do that - that's not how dialogs are meant to be used. When you use dialogs in the case you are doing here, clicking the link takes that div and turns it into an overlay (a dialog)...when you close it, we hide that overlay. It may no longer exist in the DOM in its original location even, so it's not as simple as just not showing the overlay but showing it where it was originally embedded.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.