global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 1.3.12
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.5.0
<ion-input #input type="text" name="address" [(ngModel)]="addPlaceInfo.address" placeholder="Location"></ion-input>
this.map.on(GoogleMapsEvent.MAP_CLICK).subscribe((latLng) => {
let req: GeocoderRequest = { position: latLng };
this.geocoder.geocode(req).then((results) => {
if (results) {
this.addPlaceInfo.address = '...';
}
});
});
Input is not updated until it receives focus.
This solves the problem, but this is not a way out of the situation:
@ViewChild('input') myInput;
...
this.myInput.setFocus();
setTimeout(() => {
this.keyboard.close();
}, 50);
Thankful in advance for the help.