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

AutoComplete: Unique option doesn't work #14505

Closed
evaldasu opened this issue Jan 8, 2024 · 0 comments · Fixed by #14524
Closed

AutoComplete: Unique option doesn't work #14505

evaldasu opened this issue Jan 8, 2024 · 0 comments · Fixed by #14524
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@evaldasu
Copy link

evaldasu commented Jan 8, 2024

Describe the bug

Unique option, which is set to true by default, in multiple mode doesn't seem to work at all. I've recently upgraded the code base from Angular 13 to 17 and noticed it that it allows duplicate values to be added. I've noticed this same behavior in your example section as well.

Environment

Reproducer

No response

Angular version

17.0.8

PrimeNG version

17.3.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

Firefox, Chrome

Steps to reproduce the behavior

  1. Navigate to Autocomplete example page
  2. Try entering any same value multiple times:
    image
    image

Expected behavior

I expect that unique config, which is by default set to true, won't allow duplicate values to be added.

@evaldasu evaldasu 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 8, 2024
HeavyRainLQ added a commit to HeavyRainLQ/primeng that referenced this issue Jan 10, 2024
@cetincakiroglu cetincakiroglu 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 10, 2024
@cetincakiroglu cetincakiroglu added this to the 17.3.2 milestone Jan 10, 2024
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.

2 participants