unicef / material-ui-currency-textfield

Currency textfield for React Material UI

Home Page:https://unicef.github.io/material-ui-currency-textfield/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't enter 1.99 directly

miliu99 opened this issue · comments

After you enter 1, it becomes 1.00 immediately and the cursor moves to the end, and it doesn't accept input 99 anymore. You have to select the two 0s and enter the digit again. Did I miss some options?

I could not see any issue with the current version, can you please reproduce the issue ?

@sureshsevarthi I had the same issue, after press . I need to move cursor 2 symbols left to replace 00, only then I able to type

https://drive.google.com/file/d/1arD5Gc1Ngf6Ddj9DM5C69jbtXNJw18QQ/view?usp=sharing

I'm getting the same issue

@MichaelJC91 planing switch to https://www.nicknish.co/blog/react-currency-input if will not fix this
I believe it related to React behavior with input & focus itself, so it's complex issue

I'm getting the same issue here...

Same issue for us.

Downgrading to 0.8.5 fixes it up for me

Its been over a year and a half. I'm curious is there any chance this is going to get fixed?

Downgrading to 0.8.5 fixes it up for me

This does not fix the issue anymore. Unsure if regression.

If "outputFormat" is "number" (the default), it seems to deselect immediately after the first keypress.

If you add the "outputFormat" attribute and give it the value, "string", it works better.

At that point it only deselects when you type in the 4th character (when the first comma is added).

Hi guys, you can add the following option to resolve this issue.
preDefined={{ allowDecimalPadding: false, decimalCharacterAlternative: '.' }}

is this working?