fix: force floatInputComponent to send Number (#3953)
🔧 (floatComponent/index.tsx): update handleChange function to convert input value to a number before passing it to onChange function
This commit is contained in:
parent
35d81b7e34
commit
ef11e98c8f
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ export default function FloatComponent({
|
|||
};
|
||||
|
||||
const handleChange = (event) => {
|
||||
onChange(event.target.value);
|
||||
onChange(Number(event.target.value));
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue