Skip to content

Ionic 2 Beta 11: loading.dismiss() does not work with other overlays #7940

@tyftler

Description

@tyftler

Since Beta 11 I have this issue:

    let loading = this.loadingCtrl.create({content: 'Loading...'});
    loading.present();

    this.geolocationService.geolocate().subscribe(
      (data) => {
        loading.dismiss();

        let alert = this.alertCtrl.create({
          title: 'Title',
          subTitle: 'Text',
          buttons: ['OK']
        });
        alert.present();
      },
      ...
    );

loading.dismiss() does not have any effect, the loading overlay stays open. loading.destroy() removes it but I guess that is not the way to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions