Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

bug(aria/listbox): selection state breaks when used with ngCombobox autocomplete (readonly=false)

Abierto
#32,712 1 comentario 2 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@ok7sai ya está trabajando en esto.

Desde el 1/4/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

area: aria/combobox P3
Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

Selection state breaks with autocomplete and readonly set to false

When using ngListbox in multi mode inside an ngCombobox with autocomplete enabled (filterMode="manual" and readonly=false), the listbox selection state becomes inconsistent.

Important:

This issue does not occur when the combobox is set to readonly=true.

Video

https://github.com/user-attachments/assets/4fb98448-69a6-491a-acd8-5912375a7a3e

Reproduction

StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-tzi9ff2a?file=src%2Fcombobox%2Fcombobox.html

Steps to reproduce:

  1. Create an ngCombobox with:
    a) filterMode="manual"
    b) default editable input (readonly=false)
  2. Render an ngListbox with multi enabled inside the combobox popup
  3. Select options sequentially from the list
  4. Observe listbox()?.values() after each selection listbox = viewChild<Listbox<string>>(Listbox);
Expected Behavior

ngListbox in multi mode should

  • preserve all selected values
  • never reset selection unless explicitly cleared
  • Combobox autocomplete input updates should not override or reset
  • listbox multi-selection
Actual Behavior

Selection behavior is deterministic but incorrect

Every second selection
  • listbox()?.values() resets to an empty array
  • The combobox input value remains unchanged
Every third selection

The selected option becomes:

  • the combobox input value
  • the only value in listbox()?.values()
  • This cycle repeats and makes listbox()?.values() unreliable for multi-selection state.
Environment
  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 4 h
PR fusionados (30 d)
69

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de angular/components

Todos los issues de angular/components

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.