searchLocation() {
if (!this.autoComplete) {
this.autocompleteItems = [];
return;
}
let loader = this.loadingCtrl.create({
content: 'Loading'
});
loader.present();
this.service.getPlacePredictions({
input: this.autoComplete
}, (predictions, status) => {
this.autocompleteItems = predictions;
loader.dismiss(null, null, { keyboardClose: false });
})
}
这是我的代码-尽管我已经通过了keyboardClose的navOptions选项,但我还是试图保持键盘的打开状态,但没有运气,所以运气不好-非常感谢您。