reactjs / react-autocomplete

WAI-ARIA compliant React autocomplete (combobox) component
MIT License
2.17k stars 532 forks source link

Cannot set an id on the autocomplete component #269

Closed john1625b closed 7 years ago

john1625b commented 7 years ago

When I try to do something like this: <Autocomplete id='auto-complete' /> The actual input element that is rendered does not have an id. I need an id on the input because I am trying to target it with a label, like so <label for='auto-complete'/>

CMTegner commented 7 years ago

Hi John! You can use inputProps to pass any prop to the <input> component. Hope this helps :)