score setting

This commit is contained in:
hamid zarghami
2025-12-13 08:44:47 +03:30
parent 610a82c1d5
commit baa55860d4
4 changed files with 283 additions and 20 deletions
+5 -2
View File
@@ -49,13 +49,16 @@ const Input: FC<Props> = (props: Props) => {
setFormattedValue(formatted);
// ارسال مقدار خام به `onChange` والد
props.onChange?.({
const syntheticEvent = {
...event,
target: {
...event.target,
name: event.target.name,
value: inputValue,
},
});
} as React.ChangeEvent<HTMLInputElement>;
props.onChange?.(syntheticEvent);
} else {
props.onChange?.(event);
}