Skip to content
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

I can`t input optional floating point #93

Open
Shohjahont9 opened this issue Apr 16, 2024 · 1 comment
Open

I can`t input optional floating point #93

Shohjahont9 opened this issue Apr 16, 2024 · 1 comment

Comments

@Shohjahont9
Copy link

I can`t input optional floating point?

Actually, I want to input $10 instead of $10.0 and I have to add a floating point anytime. Now if I click 1, it starts from 0.1, then I should click 0 to get $1.0

@marinofelipe
Copy link
Owner

Hi @Shohjahont9

Actually, I want to input $10 instead of $10.0 and I have to add a floating point anytime
To input $10 the formatter can be configured with hasDecimals as false, and then changed to true at any point you'd like to input decimals, ie

the value is $10
// hasDecimals is changed to true
the user types 50
the value is changed to $10,50

Have you tried that? I'm not sure though the UX would be great. Currency text wasn't designed with decimal being optionally inputed at any time

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

No branches or pull requests

2 participants