Component: InputNumber with maxlength attribute #13704
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When p-inputnumber has maxlength attribute and the max number of digits is entered, I can't select the whole number to overwrite it.
My code:
<p-inputNumber [useGrouping]="false" inputId="code" formControlName="code" maxlength="4"></p-inputNumber>
When I enter 4 digits into the input, then select them all and try to input another number to overwrite everything, nothing happens. If less than 4 digits are entered, everything works fine.
Environment
Angular application with PrimeNg.
Reproducer
No response
Angular version
16.2.3
PrimeNG version
16.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.14.0
Browser(s)
Chrome 116.0.5845.188
Steps to reproduce the behavior
The digits should be overwritten by the new pressed number, but nothing happens.
Expected behavior
I expect the selected digits to be overwritten by new input from keyboard.
The text was updated successfully, but these errors were encountered: