Skip to content

[Autocomplete][v1] ComboBox uses tabindex=0 which causes tabbing issues with AutoComplete #1089

@adamcarchibald

Description

@adamcarchibald

Issue summary

ComboBox in AutoComplete has tabindex=0 which causes the wrapping ComboBox to be highlighted when tabbing into the AutoComplete component.

https://github.com/Shopify/polaris-react/blob/master/src/components/Autocomplete/components/ComboBox/ComboBox.tsx#L266

Behavior

Tabbing into AutoComplete should allow text input without having to press tab a second time.

Video with tabindex
Video without tabindex, expected behaviour

Reduced test case

CodeSandbox with an AutoComplete you can tab into

Metadata

Metadata

Labels

AccessibilityNeeds design, development, or content work relating to accessibility.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions