CodeSeven / toastr

Simple javascript toast notifications
http://www.toastrjs.com
MIT License
11.99k stars 2.04k forks source link

Fix using multiple positions at the same time #635

Open antriver opened 4 years ago

antriver commented 4 years ago

Fixes #438

zverev78 commented 2 years ago

It will create multiple <div>s with the same id. Not an ideal solution. Possibly we should change containerId to options.containerId + '-' + options.positionClass when options.containerId is default (i.e. == getDefaults().containerId), change in css all #toast-container to .toast-container and add this css class in createContainer().