Cleanup for Overlays when Element is controlled by another lib

The overlay docs indicate you can pass a html element:

Instead of adding an HTML string, you can pass a JQuery object or plain DOM element via the overlay descriptor, too. This way you can register events with it, thus making it interactive.

If the Elements are being tracked by another lib, is there a cleanup strategy to remove left-over divs?

Such as:

Where the inner content of those divs was managed by another lib. When running a “clear” on the overlays, in my case i am looking to only clear out the “blanks”.

Hi @StephenOTT,

have you tried overlays.remove?
When I was working with overlays in a react application, I would store the overlay ID in a state and removed it in componentWillUnmount.

Cheers