This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Popup: add a check to not add ui-popover-container if it's already on the page #4661
Closed
Description
I'm feeding content to a page via AJAX.
Most content blocks contain a few popups, which once pulled into DOM add the ui-popover-container div. All good.
However, once I remove a content section (including the embedded popups), the popover-containers stay in the DOM. Next time I re-loaded the content, the popover containers get added again, so eventually my DOM is mostly popover-containers :-)
I'm now removing them by hand when leaving the page.
A better solution would be for the popover to check if the corresponding container was already there, and if so, don't add it again.