reactjs / react-autocomplete

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

Added a refAccessor prop #296

Closed azcn2503 closed 6 years ago

azcn2503 commented 6 years ago

Example: refAccessor={ref => ref._el.input}

Trying to access this.refs.input is not enough when using Material-UI for example. In Material-UI, the actual element is accessed deeper down (at ref._el.input in this example).