Skip to content

fix(select): disable interaction with the open list - #2602

Merged
rkaraivanov merged 4 commits into
IgniteUI:masterfrom
Xapollon430:codex/disabled-web-select-popup
Nov 23, 2026
Merged

rkaraivanov merged 4 commits into
IgniteUI:masterfrom
Xapollon430:codex/disabled-web-select-popup

Conversation

@Xapollon430

@Xapollon430 Xapollon430 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Clicking an option in an open Select still changed the value after the control became disabled. Extend the list's existing inert binding to cover the disabled state. The open list and its slotted controls cannot receive input while disabled.

Type of Change

  • Bug fix
  • Documentation update

Related Issues

Closes #2601.

Testing

  • The same native Chrome click changed Apple to Orange and emitted one igcChange before the patch. It kept Apple selected and emitted no change afterward.
  • The new native-pointer regression failed before the patch. All 180 focused Select tests passed afterward.
  • npm run check, npm run lint, and npm run test passed. The full browser suite reported 6,507 passing and two skipped tests.

Before and after recording

Checklist

  • Tested locally.
  • Updated the component spec and changelog.
  • Read the contribution guidelines.

Reviewer follow-up: disabling the select now closes the list and clears its expanded state. The inert binding remains as a safety guard, and pointer selection also checks disabled state. The extended test checks closure, unchanged value, no change event, and selection after re-enabling. Merged current master and resolved the Select controller conflict. All 217 Select browser tests, repository checks, and lint pass with updated dependencies.

@Marina-L-Stoyanova

Copy link
Copy Markdown
Contributor

@Xapollon430 Thanks for the fix. The issue is real: an item click in an already open list goes straight to _selectItem() and updates the value.

inert stops the click, but it leaves the select in an odd state:

  • The popover stays open next to a disabled input, and aria-expanded stays "true".
  • Keyboard users can't dismiss it. Escape is skipped while disabled, and the input can't take focus.

I think the better fix is to close the list when the select becomes disabled, and keep inert as a safety net. We asked for the same in the Angular fix (IgniteUI/igniteui-angular#17971).
Please also extend the test.

@rkaraivanov
rkaraivanov merged commit b9bf4d0 into IgniteUI:master Nov 23, 2026
6 checks passed
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.

[Bug]: An open Select still accepts a selection after it is disabled

3 participants