refactor: remove console log and direct form data modification in debounced onChange
This commit is contained in:
parent
48d7be6e1d
commit
7d267b80a7
|
|
@ -375,9 +375,6 @@ export const TypeInput: React.FC<any> = ({
|
||||||
() =>
|
() =>
|
||||||
debounce(() => {
|
debounce(() => {
|
||||||
if (typeof onChange === "function" && latestValueRef.current !== null) {
|
if (typeof onChange === "function" && latestValueRef.current !== null) {
|
||||||
console.log("onChange", latestValueRef.current);
|
|
||||||
fm.data[name] = latestValueRef.current;
|
|
||||||
fm.render();
|
|
||||||
onChange(latestValueRef.current);
|
onChange(latestValueRef.current);
|
||||||
}
|
}
|
||||||
}, 1000),
|
}, 1000),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue