MCPcopy Create free account
hub / github.com/TanStack/devtools / isInsideDevtools

Function isInsideDevtools

packages/devtools-a11y/src/core/utils/ui.utils.ts:59–66  ·  view source on GitHub ↗

* Check if an element is inside the devtools panel

(element: Element)

Source from the content-addressed store, hash-verified

57 '[data-a11y-overlay]',
58]
59
60/**
61 * Check if an element is inside the devtools panel
62 */
63function isInsideDevtools(element: Element): boolean {
64 for (const selector of DEVTOOLS_SELECTORS) {
65 if (element.closest(selector)) {
66 return true
67 }
68 }
69 return false

Callers 2

highlightElementFunction · 0.70
highlightAllIssuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected