ionic-framework: bug: chained modals doesn't close.

Bug Report

Ionic version:

[x] 5.0.0

Current behavior:

The closing of modal2 doesn’t close modal1.

Expected behavior:

Modal1 to close.

Steps to reproduce:

I’ve written a sample app ready to run. It’s here: https://github.com/mluis/ionic4-modal-modal-issue

Other information:

Ionic info:

Ionic:

   Ionic CLI                     : 5.4.12 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.1.2

Utility:

   cordova-res                          : not installed
   native-run (update available: 0.3.0) : 0.2.9

System:

   NodeJS : v13.2.0 (/usr/local/bin/node)
   npm    : 6.13.4
   OS     : macOS High Sierra

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@mluis That is strange, I would assume dismiss closes the recently open modal, instead of the currently active one. Here is a potential workaround using modal ids https://github.com/mluis/ionic4-modal-modal-issue/pull/1