MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getElementRoot

Function getElementRoot

core/src/utils/helpers.ts:210–212  ·  view source on GitHub ↗
(el: HTMLElement, fallback: HTMLElement = el)

Source from the content-addressed store, hash-verified

208 * do "myElement.shadowRoot!.querySelector(...)".
209 */
210export const getElementRoot = (el: HTMLElement, fallback: HTMLElement = el) => {
211 return el.shadowRoot || fallback;
212};
213
214/**
215 * Patched version of requestAnimationFrame that avoids ngzone

Callers 15

AccordionClass · 0.90
componentWillLoadMethod · 0.90
componentDidLoadMethod · 0.90
focusItemFunction · 0.90
mdEnterAnimationFunction · 0.90
mdLeaveAnimationFunction · 0.90
iosLeaveAnimationFunction · 0.90
iosEnterAnimationFunction · 0.90
canStartFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected