question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: chained modals doesn't close.

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
NikolaPeevskicommented, Feb 4, 2020

@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

0reactions
ionitron-bot[bot]commented, Jun 12, 2020

Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Thank you for using Ionic!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twitter bootstrap modal-backdrop doesn't disappear
So the solution to my problem is to only initialize modal manually in javascript and not using data attribute, In this way I...
Read more >
scrollable doesn't work on modals with component as content
When using a component as the content of a modal rather than a template, with the scrollable option set to true, the modal...
Read more >
5 key things to know about the margin of error in election polls
The margin of sampling error describes how close we can reasonably expect a survey result to fall relative to the true population value....
Read more >
Modal · Bootstrap v5.1
Clicking on the modal “backdrop” will automatically close the modal. Bootstrap only supports one modal window at a time. Nested modals aren't supported...
Read more >
legacy-owners-manual.pdf - Overhead Door
Check garage door for binding. • If an operational problem exists, and opener will not close, the opener can be forced to close...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found