MCPcopy Create free account
hub / github.com/editablejs/editable / hasShadowRoot

Function hasShadowRoot

packages/editor/src/utils/dom.ts:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 */
48
49export const hasShadowRoot = () => {
50 return !!(window.document.activeElement && window.document.activeElement.shadowRoot)
51}
52
53/**
54 * Get the nearest editable child and index at `index` in a `parent`, preferring

Callers 1

toEditorRangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…