fix: preserve user-provided id on Autocomplete input - #4682
Conversation
Pass user-provided id as inputId to downshift's useCombobox so it is used consistently for the input element, label htmlFor, and all related aria attributes. Closes #4588
…lass' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
|
@claude review |
|
Claude finished @pomfrida's task in 1m 4s —— View job Code Review
|
Remove unused variable and use getByRole instead of container querySelector to satisfy testing-library lint rules.
Re-apply inputId fix in useAutocomplete and test cases that were lost during rebase. Restore snapshot from main to match CI environment.

Summary
idprop with downshift's auto-generated IDidasinputIdto downshift'suseCombobox, ensuring it's used consistently for the input element, labelhtmlFor, and all related aria attributesCloses #4588
Test plan
idis preserved on the input elementforattribute matches customid🤖 Generated with Claude Code