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

Function handleChange

packages/devtools-ui/src/components/select.tsx:23–27  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

21 )
22 const id = createUniqueId()
23 const descriptionId = `${id}-description`
24
25 const handleChange = (e: Event) => {
26 const value = (e.target as HTMLSelectElement).value
27 const option = props.options.find(
28 (candidate) => String(candidate.value) === value,
29 )
30 if (!option) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected