material-ui-search-bar icon indicating copy to clipboard operation
material-ui-search-bar copied to clipboard

inputRef can't be used

Open ManuC84 opened this issue 4 years ago • 1 comments

Hi

I was trying to use useRef on the searchbar component with no luck. I was using the inputRef prop as indicated. Is there anything I'm missing?

ManuC84 avatar Mar 14 '21 16:03 ManuC84

We override inputRef here: https://github.com/TeamWertarbyte/material-ui-search-bar/blob/master/src/components/SearchBar/SearchBar.js#L149

The solution would be to "split" that ref so that it can be used from the outside. PR welcome :upside_down_face:

leMaik avatar Mar 22 '21 11:03 leMaik