Skip to content
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

Doesn't display two or more alerts simultaneously. #5

Open
ikrishagarwal opened this issue Nov 13, 2020 · 1 comment
Open

Doesn't display two or more alerts simultaneously. #5

ikrishagarwal opened this issue Nov 13, 2020 · 1 comment

Comments

@ikrishagarwal
Copy link

It doesn't show two or more alerts simultaneously. When I try to make two alerts at the beginning of the page it shows only the last alert message.

@ikrishagarwal ikrishagarwal changed the title Doesn't display two alerts simultaneously. Doesn't display two or more alerts simultaneously. Nov 13, 2020
@ikrishagarwal
Copy link
Author

ikrishagarwal commented Nov 13, 2020

I went through your code and found the real issue.

ISSUE

The issue is that you have created your alerts boilerplate and then appended it just at the begging. And then updating it according your need which created this issue.

Suggestion

You can append it when the swalt function is called and then delete it as soon as the close button is pressed. And then append a new one for another call.

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

No branches or pull requests

1 participant