Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

number fields #25

Open
jpromers opened this issue Jun 9, 2022 · 1 comment
Open

number fields #25

jpromers opened this issue Jun 9, 2022 · 1 comment

Comments

@jpromers
Copy link

jpromers commented Jun 9, 2022

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?

@fabien0102
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants