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

remove symbol after paste number in input #605

Closed
Slonevskyi08 opened this issue Jan 12, 2022 · 3 comments
Closed

remove symbol after paste number in input #605

Slonevskyi08 opened this issue Jan 12, 2022 · 3 comments

Comments

@Slonevskyi08
Copy link

Slonevskyi08 commented Jan 12, 2022

Hello! First of all thanks for this great library!

I have issue, when I use allowedDecimalSeparators={[",", "."]} and user paste for example the following number: "1234,42" I have the next value in Input after paste: "123442", but if the user paste "1234.42", then everything is fine.
I expect that the user will be able to insert numbers with both periods and commas.
How can I fix this? I tried to intercept the initial value before formatting, but it comes to me without a comma(

Thanks so much for your help!

@Toumash
Copy link

Toumash commented Jan 17, 2022

Is this something similiar to this issue? #556
If so, I've provided a simple solution to this

@Slonevskyi08
Copy link
Author

@Toumash
Yes, this is it.
Thanks a lot!

@Toumash
Copy link

Toumash commented Jan 17, 2022

Cool, lets close the issue then 😎

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