kamranahmedse / jquery-toast-plugin

Highly customizable jquery plugin to show toast messages
http://kamranahmed.info/toast
1.51k stars 507 forks source link

can we keep the old sticky toasts still if current toasts are more than the stack number? #53

Open CindyLulu opened 5 years ago

CindyLulu commented 5 years ago

If I run the below script for more than 4 times, like 5 or 10: $.toast({ text: 'Set thehideAfterproperty to false and the toast will become sticky.', hideAfter: false, stack: 4, }) The old one will be replaced by the new one, however, when I close all the 4 toasts, I didn't see the old toasts, should we set them as sticky until clicking the close button? for example, the latest toast will not replace the previous one, just have a larger z-index, after closing the latest toast, we still can see the previous one.