feat: update debounced onChange handling to directly modify form data and trigger re-render

This commit is contained in:
faisolavolut 2025-04-23 11:37:40 +07:00
parent 282b351204
commit 48d7be6e1d
1 changed files with 2 additions and 0 deletions

View File

@ -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),