Hello, I'm leveraging popupContent popups for some non-api-dataset externally sourced layergroups, which work fine till the layer is toggled 'off' (non-visible) from left-sidebar, leaving the popup(s) remaining open/visible w/o the layer they reference (ie orphaned). Tried closing from the LeftSidebarSectionSelector.onToggleLayerGroup property, but having no luck (can prevent popups' opening from there, but not able to close em). Also tested forcing close from client-side script (i know, hacky :/ ), but no luck there either (the emotion styling seems to make it more challenging to reference DOM objects; for me anyhoo).
Any tips re how & where to best etc greatly appreciated, as always!