algolia-places-react icon indicating copy to clipboard operation
algolia-places-react copied to clipboard

customize input

Open golestanirad opened this issue 5 years ago • 3 comments

i love this react wraper for algolia places but i really need customize the input. I need to use an input from material-ui but have the functionality of yours. So is it possiple to do?

golestanirad avatar Jan 01 '20 23:01 golestanirad

I also need to listen to onChange to recognize user values which aren't part of the suggestion. I recommend to just consume the places lib directly. The repo seems not maintained.

StarpTech avatar Apr 27 '20 17:04 StarpTech

It definitely makes more sense to put that in a custom hook.

https://gist.github.com/StarpTech/59c7b83b8ad96cfb1c9f8f9855c28537

StarpTech avatar Apr 27 '20 19:04 StarpTech

@golestanirad Did you solve your issue? If then you're welcome to create a PR. :)

kontrollanten avatar Jul 01 '20 21:07 kontrollanten