Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: inputNumber - Using property 'maxLength' prevents from using decrement and increment buttons #16715

Open
Nicolasprrt opened this issue Nov 8, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Nicolasprrt
Copy link

Nicolasprrt commented Nov 8, 2024

Describe the bug

Using property 'maxLength' prevents from using decrement and increment buttons of the component inputNumber

Environment

Angular CLI: 18.2.4
Node: 18.20.2
Package Manager: npm 10.5.0
OS: win32 x64

Angular: 18.2.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1802.4
@angular-devkit/build-angular 18.2.4
@angular-devkit/core 18.2.4
@angular-devkit/schematics 18.2.4
@schematics/angular 18.2.4
rxjs 7.8.1
typescript 5.5.4
zone.js 0.14.10

Reproducer

No response

Angular version

18.2.4

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.20.2

Browser(s)

Chrome

Steps to reproduce the behavior

  • Create an inputNumber add the property [showButtons] = true
  • Try using the decrement and increment buttons ( it works perfectly )
  • Now Add the property [maxLength]="3" to this inputNumber
  • Now click on the decrement and increment buttons ( Value is bot changing as it is suppose to)

Expected behavior

The value of the inputNumber should change by clicking on the increment and decrement buttons even when it has the following properties : [showButtons]="true" and [maxLength]="3"

<p-inputNumber form-control formControlName="xxx" [showButtons]="true" [maxLength]="3" />

@Nicolasprrt Nicolasprrt added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant