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:
Cristhian Zanforlin Lousa 2024-09-27 17:41:58 -03:00 committed by GitHub
commit ef11e98c8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ export default function FloatComponent({
};
const handleChange = (event) => {
onChange(event.target.value);
onChange(Number(event.target.value));
};
return (