Disabling an open Autocomplete still allows option changes
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 62/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
The bug is in the Autocomplete component's disabled input handling while its option panel is open. Start by finding where disabled is read and where option click handlers emit valueChanged, then check whether the open panel is closed when disabled becomes true. Done when the reproduction steps leave the value at Apple, close the options, and fire no valueChanged event, with a test that toggles disabled while the panel is open.
由索引模型根据 Issue 内容生成。
描述
Reproduction
- Render the Autocomplete with Apple selected and open its options.
- Set the control's
disabledinput to true while the options are open. - Click Orange in the list.
Expected behavior
The options close, the value stays Apple, and no valueChanged event fires.
Actual behavior
The options stay interactive. Clicking Orange changes the value and fires an event.
Reproduced in Chrome 157 on master at aa80e58.
- 主要语言
- TypeScript
- 星标
- 9
- 派生
- 8
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 25
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AbsaOSS/cps-shared-ui 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
AbsaOSS/cps-shared-ui#948 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
AbsaOSS/cps-shared-ui#875 ·
维护者通常 1 天内回复
-
InputComponent - expand type beyond text/number/password可能重新可做 关联的 PR 已关闭且未合并。 未关闭enhancement library
难度 1/5 1 小时以内 新手友好度 85/100
AbsaOSS/cps-shared-ui#644 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 35/100
AbsaOSS/cps-shared-ui#951 ·
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 55/100
AbsaOSS/cps-shared-ui#949 ·
维护者通常 1 天内回复
查看 AbsaOSS/cps-shared-ui 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
vercel-labs/ui#540 ·
维护者通常 1 天内回复
-
accepted ai-dev ai-implementing
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffix未关闭
难度 2/5 1-3 小时 新手友好度 72/100
figma/code-connect#419 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
Negative values skip k/M abbreviation and medium decimal format on line, stacked-area, and tooltip未关闭
难度 2/5 1-3 小时 新手友好度 84/100
britecharts/britecharts#1255 ·
维护者通常 1 天内回复