ngx-bootstrap
Version:
Angular Bootstrap
12 lines • 346 B
JavaScript
/**
* Returns the parentNode or the host of the element
*/
// todo: valorkin fix
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function getParentNode(element) {
if (element.nodeName === 'HTML') {
return element;
}
return element.parentNode || element.host;
}
//# sourceMappingURL=getParentNode.js.map