Selectmenu changes selection after its native select is disabled while open

Open Beginner friendly
#2,425 0 comments 0 reactions 0 assignees View on GitHub

@Xapollon430 is already working on this.

Since Nov 12, 2026.

  • #2426 by @Xapollon430 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, jquery
Domain
frontend

Research direction

Start by locating Selectmenu's handling of a native select becoming disabled while its menu is open, then check the related tests for selection and change events. Reproduce the described sequence in Chrome: open the menu, disable the select, and choose Banana. Done when the selection stays on Apple and no selection or change event is emitted.

Written by the indexing model from the issue text.

Description

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

Dominant language
JavaScript
Stars
11.3k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jquery/jquery-ui

All issues in jquery/jquery-ui

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.