kontrollanten / algolia-places-react

React/preact wrapper for Algolia Places
https://npm.im/algolia-places-react
MIT License
62 stars 19 forks source link

customize input #395

Open golestanirad opened 4 years ago

golestanirad commented 4 years ago

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?

StarpTech commented 4 years ago

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 commented 4 years ago

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

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

kontrollanten commented 4 years ago

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