Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Bug when opening a second modal if the first one is still clossing #235

Open
pjmolina opened this issue Mar 8, 2018 · 0 comments
Open

Comments

@pjmolina
Copy link

pjmolina commented Mar 8, 2018

Hi.
I have found the following case: two or more consecutive modals must be shown (like wizard steps).
If you open a second modal when the first one is still closing, the UI freezes.

Repro sample: https://stackblitz.com/edit/ng2-bs3-modal-case

See app/app-component.ts line 32 for second opening when the first one is still closing.

Current work-around: avoid opening the second modal till ensuring the first one is fully closed.
In this simple case, it is fixed moving the logic from second opening from line 32 to 24 modalClosed().

However, I think this is a bug and should be fixed in the way, the library should properly deal with open and closing in safe and reliable ways, delaying opening if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant