ionic-framework: bug: Modal panels and other overlays seem to only open once (ios/android)

Bug Report

Ionic version: [x] 4.7.4

Current behavior: On ios when opening a modal it works fine, closing the modal with modalCtrl.dismiss closes the modal as expected. However after that no other modal panel will open untill the app is restarted. Page navigation still work fine.

On android the same happens when using a actionsheet

Expected behavior: Expected behaviour would be being to open and close a modal and after that open another and repeat

Steps to reproduce: On ios open a modal panel and dismiss it, try to open another On android open a actionsheet and close it, try to open it again

Related code:

  async loadRequestDayModal(){
    let requestDayModel = await this.modalController.create({"component":  RequestDayPage, "animated": true});
    requestDayModel.present();
  }

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.2.4 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.7.4
   @angular-devkit/build-angular : 0.802.0
   @angular-devkit/schematics    : 8.2.0
   @angular/cli                  : 8.2.0
   @ionic/angular-toolkit        : 2.0.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : browser 6.0.0, ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 22 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.6 (update available: 0.2.8)

System:

   Android SDK Tools : 26.1.1 (/Users/rh/Library/Android/sdk)
   ios-sim           : 8.0.1
   NodeJS            : v12.7.0 (/Users/rh/.nvm/versions/node/v12.7.0/bin/node)
   npm               : 6.10.0
   OS                : macOS Mojave
   Xcode             : Xcode 10.3 Build version 10G8

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

4.6.0 And below seem to be working fine, anything above seems to cause this issue