This should fix the problem. Two alternative approaches that I've tried is to use numeraljs with 0[.]00 as format and react-number-format, in the first case to set only the formatted result in the input but onChange this makes it impossible to write decimal numbers, in onBlur doesn't look very well. and using react-number-format doesn't work for some reason.
Closes #16
This should fix the problem. Two alternative approaches that I've tried is to use numeraljs with
0[.]00
as format andreact-number-format
, in the first case to set only the formatted result in the input butonChange
this makes it impossible to write decimal numbers, inonBlur
doesn't look very well. and usingreact-number-format
doesn't work for some reason.