feat: update debounced onChange handling to directly modify form data and trigger re-render
This commit is contained in:
parent
282b351204
commit
48d7be6e1d
|
|
@ -376,6 +376,8 @@ export const TypeInput: React.FC<any> = ({
|
|||
debounce(() => {
|
||||
if (typeof onChange === "function" && latestValueRef.current !== null) {
|
||||
console.log("onChange", latestValueRef.current);
|
||||
fm.data[name] = latestValueRef.current;
|
||||
fm.render();
|
||||
onChange(latestValueRef.current);
|
||||
}
|
||||
}, 1000),
|
||||
|
|
|
|||
Loading…
Reference in New Issue