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

Fix for "allow_duplicates: false"... #231

Open
AzzaAzza69 opened this issue Apr 17, 2023 · 0 comments
Open

Fix for "allow_duplicates: false"... #231

AzzaAzza69 opened this issue Apr 17, 2023 · 0 comments

Comments

@AzzaAzza69
Copy link

AzzaAzza69 commented Apr 17, 2023

The line:
var isSameType = $el.hasClass('alert-' + notification.settings.type);

needs to be changed to:
var isSameType = $el.find('.alert').hasClass('alert-' + notification.settings.type);

otherwise it won't find the element that has the "alert-*" class on it...
(this is for the v4.0.3 taken from https://www.npmjs.com/package/bootstrap4-notify)

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