material-ui-currency-textfield icon indicating copy to clipboard operation
material-ui-currency-textfield copied to clipboard

Can't enter 1.99 directly

Open miliu99 opened this issue 5 years ago • 12 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?

miliu99 avatar Feb 21 '20 15:02 miliu99

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

sureshsevarthi avatar Feb 24 '20 01:02 sureshsevarthi

@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

SashaDesigN avatar Apr 01 '20 07:04 SashaDesigN

I'm getting the same issue

MichaelJC91 avatar Apr 02 '20 00:04 MichaelJC91

@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

SashaDesigN avatar Apr 02 '20 17:04 SashaDesigN

I'm getting the same issue here...

imakecodes avatar Jul 07 '20 01:07 imakecodes

Same issue for us.

cardnetwork avatar Oct 21 '20 19:10 cardnetwork

Downgrading to 0.8.5 fixes it up for me

alfondotnet avatar Jan 26 '21 03:01 alfondotnet

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

Kmcgee92 avatar Jun 24 '21 23:06 Kmcgee92

Downgrading to 0.8.5 fixes it up for me

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

Kmcgee92 avatar Jun 24 '21 23:06 Kmcgee92

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).

gtk-aschmidt avatar Apr 27 '22 22:04 gtk-aschmidt

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

leeyyl avatar Aug 11 '22 09:08 leeyyl

is this working?

jasimvk avatar Apr 26 '23 13:04 jasimvk