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

Function onChange

packages/react-aria/src/color/useColorArea.ts:427–435  ·  view source on GitHub ↗
(e: ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

425 });
426
427 const onChange = (e: ChangeEvent<HTMLInputElement>) => {
428 const {target} = e;
429 setValueChangedViaInputChangeEvent(true);
430 if (target === inputXRef.current) {
431 state.setXValue(parseFloat(target.value));
432 } else if (target === inputYRef.current) {
433 state.setYValue(parseFloat(target.value));
434 }
435 };
436
437 let isMobile = isIOS() || isAndroid();
438

Callers

nothing calls this directly

Calls 2

setXValueMethod · 0.80
setYValueMethod · 0.80

Tested by

no test coverage detected