React-number-format: Entering leading decimal results in integer

Created on 18 Oct 2017  路  2Comments  路  Source: s-yadav/react-number-format

When I type ".99" the result looks like this:
not desired

... whereas, I'd expect this:
desired

Happy to attempt a PR, if you'd like.

Most helpful comment

In 3.0.0 it should be $.99 while your typing and should become $0.99 onBlur. Let me fix this. I know which part is causing this issue.

All 2 comments

In 3.0.0 it should be $.99 while your typing and should become $0.99 onBlur. Let me fix this. I know which part is causing this issue.

@tygriffin I was wondering if you came up with a solution, I am trying to achieve the same behavior.

Was this page helpful?
0 / 5 - 0 ratings