MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onChange

Function onChange

packages/react-aria/src/color/useColorField.ts:146–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 });
145
146 let onChange = value => {
147 if (state.validate(value)) {
148 state.setInputValue(value);
149 }
150 };
151
152 let {inputProps, ...otherProps} = useFormattedTextField(
153 {

Callers

nothing calls this directly

Calls 2

validateMethod · 0.65
setInputValueMethod · 0.65

Tested by

no test coverage detected