Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

113
Views
PrimeNG grouped multiselect is selecting items from other group

I am using PrimeNG to create a multi-select dropdown in an Angular application as in the snippet below: The problem I seem to be having, is the groups all have same names, and selecting one, selects them all.

<p-multiSelect [options]="groupedInteractions" [group]="true" [(ngModel)]="selectedInteractions" defaultLabel="Select" formControlName="interactions">
</p-multiSelect>

Json is similar to this:


{
"First-Group": [
    "Self-service",
    "Non self-service"
],
"Second-Group": [
    "Self-service",
    "Non self-service"
]

}

If I select "Self Service" From First group. Both "Self Services" are selected.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You must use a unique attribute in the object that identifies each element, and use the optionValue and optionLabel properties: { "First-Group": [ "Self-service", "Non self-service", 1 ], "Second-Group": [ "Self-service", "Non self-service", 2 ] }

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!