javascript: close/hide the popover attached to the dom element

var el = document.querySelector("#element-id");

el.dispatchEvent(new CustomEvent("popover", { detail: { open: false }}));


You may also like...