react-runtime-config icon indicating copy to clipboard operation
react-runtime-config copied to clipboard

number fields

Open jpromers opened this issue 3 years ago • 1 comments

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?

jpromers avatar Jun 09 '22 22:06 jpromers

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

fabien0102 avatar Jun 10 '22 08:06 fabien0102