Selectmenu changes selection after its native select is disabled while open

未关闭 适合新手
#2,425 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Xapollon430 已经在做这个了。

开始于 2026年11月12日。

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

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, jquery
领域
frontend

调研方向

首先,找到 Selectmenu 如何处理原生 select 在菜单打开时变为禁用状态的情况,然后检查与选择事件和 change 事件相关的测试。在 Chrome 中重现所述操作顺序:打开菜单,禁用 select,然后选择 Banana。完成条件是选择仍为 Apple,且没有发出选择事件或 change 事件。

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

描述

Reproduction

Initialize jQuery UI Selectmenu on a native select with Apple selected and Banana available. Open the menu, set the original select's disabled property to true, then click Banana.

The disabled select changes to Banana and Selectmenu emits selection and change events. It should keep Apple after disable.

Reproduced in Chrome using jQuery 4.0.0 against jQuery UI main at dcf1055. Reproduction video

主要语言
JavaScript
星标
11.3k
派生
5.2k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

jquery/jquery-ui 的其他 Issue

查看 jquery/jquery-ui 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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