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

Function hasShadowDom

core/src/utils/helpers.ts:228–230  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

226};
227
228export const hasShadowDom = (el: HTMLElement) => {
229 return !!el.shadowRoot && !!(el as any).attachShadow;
230};
231
232export const focusVisibleElement = (el: HTMLElement) => {
233 el.focus();

Callers 2

ButtonClass · 0.90
renderHiddenInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected