Select accepts selection after becoming disabled while open

未关闭
#5,231 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@Xapollon430 已经在做这个了。

开始于 2026年11月3日。

  • #5232 来自 @Xapollon430 —— 未关闭

评估

难度
3/5
预计耗时
半天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
react, scss, typescript
领域
frontend

调研方向

Work is already under way in linked pull request #5232, so read that first and avoid duplicating it. The issue's reproduction is in the linked external repository and shows the Select staying open after the application sets disabled. Done means a disabled Select rejects option selection while its popup is open, and onChange does not fire. Confirm the behaviour against the reproduction before relying on the PR.

由索引模型根据 Issue 内容生成。

描述

If Select becomes disabled while its popup is open, the existing options can still change the selection and fire onChange. The control should reject user selection once it is disabled.

Reproduction

  1. Click Disable in 3 seconds, then open the Select.
  2. Wait for Disabled: true.
  3. Click Orange. The selection changes from Apple to Orange while the control remains disabled.

Recorded against @cloudscape-design/components 3.0.1408. Runnable reproduction includes the required styles and setup.

https://github.com/user-attachments/assets/d08be1e5-846f-4384-8c9e-b85950836028

Tested in Chromium on macOS. The application toggles disabled; popup state is managed by the library.

主要语言
TypeScript
星标
2.7k
派生
248
平均合并
2 天 19 小时
30 天内合并 PR
90

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudscape-design/components 的其他 Issue

查看 cloudscape-design/components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。