Description
The createAutocomplete function getRootProps() getter doesn't return the aria-controls attribute.
This is flagged as a violation by Axe Core.

Reproduction
You can reproduce this issue in the Algolia docs: https://www.algolia.com/doc/.
Steps
- Go to https://www.algolia.com/doc/
- Click on "Search for documentation" trigger button
- Search for any keyword that displays results
- Use the Axe DevTools browser extension to run a scan and see the "Required Aria attributes must be provided" issue (as per the screenshot above).
Expected behavior
Is it a false positive because the aria-controls attribute is returned by the getInputProps getter?
Or should it also be set on the combobox (returned by getRootProps)?
Environment
- Autocomplete version: 1.17.4
Description
The createAutocomplete function
getRootProps()getter doesn't return thearia-controlsattribute.This is flagged as a violation by Axe Core.
Reproduction
You can reproduce this issue in the Algolia docs: https://www.algolia.com/doc/.
Steps
Expected behavior
Is it a false positive because the
aria-controlsattribute is returned by thegetInputPropsgetter?Or should it also be set on the
combobox(returned bygetRootProps)?Environment