-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dont work with hooks #101
Comments
use also Full example: <CurrencyInput decimalSeparator="," thousandSeparator="." precision="2" suffix=" €"
value={price}
selectAllOnFocus
onChange={(_, val) => setPrice(val)}/> |
Tks man! Its worked for me! |
Still not working for me, do you any comment? Thanks |
My full code for this lib: https://github.com/patricklongo1/gympoint-web/blob/master/src/pages/PlanRegister/index.js @Important: function handleInput(floatvalue) { return ( Hope its help u! |
Thank so much!, I will try it 👍 |
if u try use hooks.. its do not works.
Ex:
const [price, setPrice] = useState('');
<CurrencyInput
decimalSeparator=","
thousandSeparator="."
prefix="R$ "
onChangeEvent={(event, maskedvalue, floatvalue) =>
setPrice(floatvalue)
}
/>
the input keep reseting...
can someone try fix this?
The text was updated successfully, but these errors were encountered: