MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / handleChange

Function handleChange

src/showcase/components/input/TagInput.tsx:62–64  ·  view source on GitHub ↗
(event: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

60
61 // Updates the inputValue state as the user types
62 const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
63 setInputValue(event.target.value)
64 }
65 // Adds the keyword when the input loses focus, if there's a keyword to add
66 const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {
67 if (inputValue.trim() !== '' && event.relatedTarget?.tagName !== 'BUTTON') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected