MCPcopy Index your code
hub / github.com/TanStack/devtools / isEditableTarget

Function isEditableTarget

packages/devtools/src/devtools.tsx:168–180  ·  view source on GitHub ↗
(element: Element | null)

Source from the content-addressed store, hash-verified

166 })
167 createEffect(() => {
168 const isEditableTarget = (element: Element | null) => {
169 if (!element || !(element instanceof HTMLElement)) return false
170 if (element.isContentEditable) return true
171 const tagName = element.tagName
172 if (
173 tagName === 'INPUT' ||
174 tagName === 'TEXTAREA' ||
175 tagName === 'SELECT'
176 ) {
177 return true
178 }
179 return element.getAttribute('role') === 'textbox'
180 }
181
182 const permutations = getHotkeyPermutations(settings().openHotkey)
183

Callers 1

DevToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected