Ionicjs-解除加载程序时保持键盘打开

时间:2018-07-18 16:22:35

标签: ionic-framework ionic3

    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选项,但我还是试图保持键盘的打开状态,但没有运气,所以运气不好-非常感谢您。

0 个答案:

没有答案