MCPcopy Index your code
hub / github.com/plotly/dash / onEvent

Function onEvent

components/dash-core-components/src/components/Input.tsx:102–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 );
101
102 const onEvent = () => {
103 const {value: inputValue} = input.current;
104 const valueAsNumber = convert(inputValue);
105 if (type === HTMLInputTypes.number) {
106 setPropValue(props.value, valueAsNumber ?? value);
107 } else {
108 const propValue =
109 inputValue === '' && props.value === undefined
110 ? undefined
111 : inputValue;
112 props.setProps({value: propValue});
113 }
114 setPendingEvent(undefined);
115 };
116
117 const onBlur = useCallback(() => {
118 props.setProps({

Callers 1

InputFunction · 0.85

Calls 1

convertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…