-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chaining modals and running modals in sequence has incorrect behaviour #2730
Comments
Using progress steps is a related feature that can achieve a similar result, but it's inherently a very different (and much more complex) syntax for a different usecase. There are cases when multiple popups might need to happen, in an unrelated manner where the different popups don't know about each other. Example 1: imagine if the user clicks button A, then popup A is shown. If they click button B, popup B is shown. If they click button C, both popups are shown. It would lead to much cleaner and more intuitive code if C can simply call both A and B, rather than having to use completely different code. Example 2: imagine that popup A happens on a schedule, and popup B is currently showing because of a user action. When A is triggered, it'll automatically take over B. My reason for wanting this to be simpler is because I have a package in a different language (R) that brings sweetalert's functionality, and currently users can call |
|
Current behavior
These are a few interrelated bugs. I'll show three examples
Expected behavior
I would expect to see the modals in the correct order. In the three cases described above:
Live demo !!! THIS FIELD IS REQUIRED !!!
All three code samples are in this pen: https://codepen.io/daattali/pen/mdYebqx
The text was updated successfully, but these errors were encountered: