Skip to content

fix(autocomplete): don't open panel for readonly inputs, even with keyboard #9227

Closed
@gogakoreli

Description

@gogakoreli

Bug, feature request, or proposal:

When I disable input inside autocomplete I can still open the panel when input has focus and I click the arrow buttons on my keyboard.
#7271 this pull request only fixed this issue for input focus, panel doesn't open if I click on the input with the mouse or change focus with tab, but still opens with arrow keys.

What is the expected behavior?

Autocomplete panel shouldn't open when input is readonly, even with the keyboard

What is the current behavior?

Autocomplete panel opens when input is readonly using keyboard arrows

What are the steps to reproduce?

Autocomplete Stackblitz, in this example add readonly to the input inside autocomplete, then focus the input with mouse click and click on the keyboard down arrow key ( ↓ ).

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions