Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

104
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda