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

Any way to autoreplace ',' with '.' on typing? #133

Closed
drakmail opened this issue Dec 10, 2017 · 2 comments
Closed

Any way to autoreplace ',' with '.' on typing? #133

drakmail opened this issue Dec 10, 2017 · 2 comments

Comments

@drakmail
Copy link

I want to implement autoreplace ',' with '.' on typing in input. Does there any ways to did it with react-number-format?

@s-yadav
Copy link
Owner

s-yadav commented Jan 24, 2018

Try this
#115 (comment)
However, this is not supported on android chrome. So you can add check if keyCode is not supported for any browser don't do this.

@drakmail
Copy link
Author

Thank you, I'll try it

@s-yadav s-yadav mentioned this issue Oct 1, 2018
6 tasks
@s-yadav s-yadav closed this as completed Oct 30, 2018
macobo added a commit to macobo/react-number-format that referenced this issue Sep 24, 2019
When defined, this prop defines which keys to accept as decimal
separators. This is useful in cases where users might want to enter both
comma and dot as separators

Related issues: s-yadav#324, s-yadav#133, s-yadav#223, s-yadav#261
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