Primeng: inputnumber : not able to type "."(dot) or comma"with"(respective locale) for decimal point. Need to move the cursor manually to enter digit after decimal point

Created on 28 Jun 2020  Â·  6Comments  Â·  Source: primefaces/primeng

ngular version: 9.1.1
PrimeNG version: 9.1.0

snapshot
image

User is getting frustrated due to to this.

Most helpful comment

This still seems to be an issue.

I'm using version 11.3.1 and if I try to type a decimal in an input, it doesn't allow me to type the decimal separator.
The workaround I've found is setting minFractionDigits to 1 but you'd expect an input in decimal mode to allow you to actually type decimals into it regardless of the minimum fraction digits.

Example code:
<p-inputNumber mode="decimal" max="100" [step]="2.5" suffix="%">

All 6 comments

Got the same issue with v9.1.0 and Angular 9.1.8... Also happens with the components on the showcase page of the inputNumber

OMG this is so infuriating. Another problem is that for example in showcase page when you select whole "Currency -> United States" value and input something like "1" it puts "$1,00" and cursor moves to the end of input and you are unable to write... ok I am switching to ngx-mask for now.

Thanks a lot for your feedbacks! Could you please test these issues on PrimeReact inputNumber?
https://primefaces.org/primereact/showcase/#/inputnumber
if it works fine for you, I can add new improvements to PrimeNg. This component is open to user experiences. Therefore, feedback is important to us.

Thanks again!
Best Regards,

Hello. On PrimeReact inputNumber the behaviour is better, but still weird.

I'm testing on Windows with Chrome.

For example, if you tab focus from United States to Germany and try to type a number like 123,00 the first keystroke works and move the cursor to the end, after the € symbol.

The same happens on United States if you position the cursor at the end and select all with Shift+Home. Trying to type a number like 123,00 happens to work only for the first algarism.

This still seems to be an issue.

I'm using version 11.3.1 and if I try to type a decimal in an input, it doesn't allow me to type the decimal separator.
The workaround I've found is setting minFractionDigits to 1 but you'd expect an input in decimal mode to allow you to actually type decimals into it regardless of the minimum fraction digits.

Example code:
<p-inputNumber mode="decimal" max="100" [step]="2.5" suffix="%">

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cyberrranger picture cyberrranger  Â·  3Comments

miresk picture miresk  Â·  3Comments

mitosandov picture mitosandov  Â·  3Comments

Faigjaz picture Faigjaz  Â·  3Comments

markgoho picture markgoho  Â·  3Comments