@hibiken I am using ""react-google-maps" to load map and "react-places-autocomplete" to search and show suggestions. Below are the issues i am facing:-
1)With the above code, while i typing a location in search bar the value does not get printed in the log put in handleLocationSearchInputChange because i see its not getting called even the state is set every time we type in handleLocationSearchInputChange. Is this expected? When i check in developer options, once i start typing i dont see the "value" attribute at all in the input tag even though if am passing the value prop to . When i check the same in your demo, the value attribute is initially empty and gets changed everytime i type, with the updated value. How do i solve this issue in my code?
2)When i type a location, the dropdown does not come like it comes in you demo. How can fix this? How ever when i see the demo, the dropdown comes very quickly with suggestions. How can i achieve this?
3)When i type and click enter in search box, it clears the search box and throws invalid request error. I see it internally calls handleEnterKey but i am still facing this issue. If i type and click outside using a mouse, only then the dropdown comes and does not come when i start typing like mentioned in 2nd point above.
Please help with my above queries @hibiken. Thanks in advance..!!
@hibiken
Here is my MapComponent.js:-
Here is my MapOtherLocation.js:-
@hibiken I am using ""react-google-maps" to load map and "react-places-autocomplete" to search and show suggestions. Below are the issues i am facing:- 1)With the above code, while i typing a location in search bar the value does not get printed in the log put in handleLocationSearchInputChange because i see its not getting called even the state is set every time we type in handleLocationSearchInputChange. Is this expected? When i check in developer options, once i start typing i dont see the "value" attribute at all in the input tag even though if am passing the value prop to. When i check the same in your demo, the value attribute is initially empty and gets changed everytime i type, with the updated value. How do i solve this issue in my code?
2)When i type a location, the dropdown does not come like it comes in you demo. How can fix this? How ever when i see the demo, the dropdown comes very quickly with suggestions. How can i achieve this?
3)When i type and click enter in search box, it clears the search box and throws invalid request error. I see it internally calls handleEnterKey but i am still facing this issue. If i type and click outside using a mouse, only then the dropdown comes and does not come when i start typing like mentioned in 2nd point above.
Please help with my above queries @hibiken. Thanks in advance..!!