MCPcopy Create free account
hub / github.com/UI5/webcomponents / getParentElement

Function getParentElement

packages/base/src/util/getParentElement.ts:1–3  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

1const getParentElement = (element: Element) : Element | null => {
2 return element.parentElement ? element.parentElement : (element.parentNode as ShadowRoot).host;
3};
4
5export default getParentElement;

Callers 3

closePopoversIfLostFocusFunction · 0.85
findContainerMethod · 0.85
setSelectedGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…