Skip to content

fix(material/autocomplete): close suggestions when disabled - #34126

Closed
Xapollon430 wants to merge 1 commit into
angular:mainfrom
Xapollon430:codex/autocomplete-disabled-open
Closed

Xapollon430 wants to merge 1 commit into
angular:mainfrom
Xapollon430:codex/autocomplete-disabled-open

Conversation

@Xapollon430

Copy link
Copy Markdown

Fixes #34125.

An open autocomplete still accepts an option after its form control or autocomplete directive is disabled. Close the suggestions when either disabled state takes effect so a later click cannot change the value.

Form control reproduction · Directive input reproduction

Both regression tests fail before the fix and pass after it. Native Chrome clicks reproduced the change before the fix. All 178 Chromium test targets passed.

AI-assisted implementation and testing.

@crisbeto

Copy link
Copy Markdown
Member

This is an edge case that isn't worth the hassle to handle.

@crisbeto crisbeto closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autocomplete can select an option after being disabled while open

2 participants