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

p-autocomplete: maxlength doesn't work anymore #14595

Closed
PauloKoglin opened this issue Jan 19, 2024 · 1 comment · Fixed by #14661
Closed

p-autocomplete: maxlength doesn't work anymore #14595

PauloKoglin opened this issue Jan 19, 2024 · 1 comment · Fixed by #14661
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@PauloKoglin
Copy link

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 property maxlength 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.

@PauloKoglin PauloKoglin added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 19, 2024
@PauloKoglin PauloKoglin changed the title Component: p-autocomplete maxlength doesn't work anymore p-autocomplete: maxlength doesn't work anymore Jan 19, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.5.0 milestone Jan 30, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 30, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Jan 30, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Thanks a lot for reporting the issue!

cetincakiroglu added a commit that referenced this issue Feb 1, 2024
Fixed #14595 - Autocomplete | maxlength doesn't work anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants