Hi,
in outsideclickhandler.js there is a cleanup routine which is called after dispose of the component.
This has no effect because of using slice.
function removeOutsideClickEvent(index) {
elementRefs.slice(index, 1);
if (elementRefs.length === 0) {
window.removeEventListener("click", outsideClickEvent);
hasOutsideClickEvent = false;
}
}
--> slice returns a copy of the changed array. Use splice instead to clean up old references
Thanks