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]
58
59/**
60 * Check if an element is inside the devtools panel
61 */
62function isInsideDevtools(element: Element): boolean {
63 for (const selector of DEVTOOLS_SELECTORS) {
64 if (element.closest(selector)) {
65 return true
66 }
67 }
68 return false
69}

Callers 2

highlightElementFunction · 0.70
highlightAllIssuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected