p-autocomplete: maxlength doesn't work anymore #14595
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Our Team is still migrating the PrimeNG-Version in our project from 15 to 17.
This time I found a problem with the
p-autocomplete
. The propertymaxlength
doesn't work anymore, even setting the property it does allow to type more characters than defined.Not working (17.3.3) Stackblitz
autocomplete-maxlength.mov
Working fine (15.3.1) Stackblitz
autocomplete-working-maxlength.mov
Environment
"@angular/animations": "17.0.8",
"@angular/common": "17.0.8",
"@angular/compiler": "17.0.8",
"@angular/core": "17.0.8",
"@angular/forms": "17.0.8",
"@angular/platform-browser": "17.0.8",
"@angular/platform-browser-dynamic": "17.0.8",
"@angular/router": "17.0.8",
"@swc/helpers": "~0.5.2",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primeng": "17.3.1",
"rxjs": "7.8.1",
"tslib": "^2.3.0",
"zone.js": "0.14.2"
Reproducer
https://stackblitz.com/edit/7uuytc?file=src%2Fapp%2Fdemo%2Fautocomplete-basic-demo.html
Angular version
17.0.8
PrimeNG version
17.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
No response
Steps to reproduce the behavior
See the video in the description.
Expected behavior
The input doesn't allow to type more characters than defined.
The text was updated successfully, but these errors were encountered: