react-runtime-config
react-runtime-config copied to clipboard
number fields
So i have a number field integrated with a html text input and I don't see any method to enter a decimal number unless the text field already contains a decimal (so that it is already evaluated by parseNumber to be a valid decimal) or I have to copy the text and paste it into the field. The instant I remove the fractional portion of a value so that the window contains "1.", parseFloat(1.1) returns 1 and then I can never enter a fractional portion of a number because "1." evaluates to "1". Is there a work around?
Hi @jpromers, I'm not sure I understand correctly your issue, is related to this library or the to the html input?
To help me a bit, could you create a repro case on codesandbox?
If this is about the html input, I think this article can interest you -> https://react-spectrum.adobe.com/blog/how-we-internationalized-our-numberfield.html