Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inputRef can't be used #93

Open
ManuC84 opened this issue Mar 14, 2021 · 1 comment
Open

inputRef can't be used #93

ManuC84 opened this issue Mar 14, 2021 · 1 comment

Comments

@ManuC84
Copy link

ManuC84 commented Mar 14, 2021

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?

@leMaik
Copy link
Member

leMaik commented Mar 22, 2021

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 🙃

@leMaik leMaik changed the title Can't use ref hook ??? inputRef can't be used Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants