bug(aria/listbox): selection state breaks when used with ngCombobox autocomplete (readonly=false)
维护者通常 1 天内回复
@ok7sai 已经在做这个了。
开始于 2026年4月1日。
评估
这个 Issue 还没有评估数据。
描述
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:
- Create an ngCombobox with:
a) filterMode="manual"
b) default editable input (readonly=false) - Render an ngListbox with multi enabled inside the combobox popup
- Select options sequentially from the list
- 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):
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 69
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
angular/components 的其他 Issue
-
bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.可能已有人在做 @lekhmanrus 于 9 天前认领。 未关闭area: material/sort P3
难度 2/5 1-3 小时 新手友好度 70/100
angular/components#33933 ·
维护者通常 1 天内回复
-
bug(mat-date-picker): month shown twice in date picker可能已有人在做 @PreethiPantangi 于 27 天前认领。 未关闭area: material/datepicker P4
难度 2/5 1-3 小时 新手友好度 72/100
angular/components#33763 · 2 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
-
Bug in table.scss footer cell height: unset instead of footer row height unset可能已有人在做 @minwookshin 于 13 天前认领。 未关闭area: material/table P4
难度 1/5 1 小时以内 新手友好度 88/100
angular/components#33709 · 1 条评论 ·
维护者通常 1 天内回复
-
docs-bug(Table): Add example with `rowspan`可能已有人在做 @BHUVANSH855 于 94 天前认领。 未关闭area: material/table docs P4
难度 2/5 1-3 小时 新手友好度 72/100
angular/components#33455 ·
维护者通常 1 天内回复
-
bug(date-adapter): Misleading JSDoc for createDate returns type可能已有人在做 @BHUVANSH855 于 144 天前认领。 未关闭area: material/core P3
难度 1/5 1 小时以内 新手友好度 78/100
angular/components#33059 · 2 条评论 ·
维护者通常 1 天内回复
查看 angular/components 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
auth: agent-bearer --manager-call is told to use the MCP instance argument on an ambiguous manager未关闭
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
bug module: playback
难度 2/5 1-3 小时 新手友好度 68/100
chthollyphile/folia-major#739 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 78/100
agilepathway/label-checker#773 · 2 条评论 ·
维护者通常 1 天内回复