Skip to content

fix(search-select): disable options as the popup closes - #988

Merged
jaywcjlove merged 1 commit into
uiwjs:masterfrom
Xapollon430:codex/guard-searchselect-exit-selection
Nov 12, 2026
Merged

jaywcjlove merged 1 commit into
uiwjs:masterfrom
Xapollon430:codex/guard-searchselect-exit-selection

Conversation

@Xapollon430

Copy link
Copy Markdown
Contributor

Fixes #987.

Problem

  1. Open SearchSelect with Apple selected.
  2. Disable it while the dropdown is open.
  3. Click Orange before the popup finishes closing. The selection changes and onChange fires.

The closing transition leaves the menu items on screen after the input becomes disabled. The items now inherit SearchSelect's disabled state, using the existing Menu.Item behavior that removes its selection handler.

Browser recording

I found this class of interaction while testing state transitions in Anta, then reproduced this case separately in UIW SearchSelect.

Validation

Built current SearchSelect source with the UIW styles. A real Chrome click during the exit changes Apple to Orange on master. With the fix, the same click leaves Apple selected with zero events. Selecting Orange works after re-enabling and reopening.

AI-assisted implementation and testing.

@jaywcjlove
jaywcjlove merged commit a3ca836 into uiwjs:master Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SearchSelect can change value during the exit transition after being disabled

2 participants