Search code examples
notificationsmouseovermessagestickytoastr

Toastr: How to prevent fade out with sticky toast on mouseover?


I've been playing with toastr and have successfully set the timeout to 0 so the toast remains sticky, however the toast disappears when I mouse out of the toast. I'd like to override this so the toast only goes away if the user clicks it - ideal for toasts with lots of text. How can this be done?


Solution

  • Set extendedTimeOut to 0 too. That will keep it sticky.