I use google places APIin my mobile application based on ionic / cordova, angular on Android platform.
I can get the search results from the value of the text field using the API, but when I select an option, just clicking on one of the search results, the text field remains empty.
But when I click and save the search parameter for 2-3 seconds, this parameter is selected.
It seems strange to me, but it happens.
place_changed eventdoes not work when pressed quickly.
I really don't know what could be causing this problem? I tried to Faskclick.jfix 300 ms, but it didn’t work, although I think this problem is not related to 300 ms delay.
My code is:
function initialize() {
var autocomplete = new google.maps.places.Autocomplete(input, options);
};
Please help me here.
source
share