You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The doc implies that delay argument can be omitted, and the toast will stay until manually dismissed:
Note: The final argument delay is omitable. If omitted, the toast will remain forever.
This does not seem to be the case... For example:
// This works, toast is shown and hidden after delay$.toast({type: "error",title: "Test",content: "test",delay: 3000})// This does not work - toast is hidden immediately after being shown (so it never even appears on screen)$.toast({type: "error",title: "Test",content: "test"})
If delay is omitted, opts.delay here is undefined, so setTimeout fires immediarely, and as paused is false, the toast is immediately hidden...
Even more confusingly, same code/bug is also present in the original library.. with the last commit years ago (.. how am I the first one discovering this?).
The text was updated successfully, but these errors were encountered:
Perhaps I am not the first one discovering. This fork has a bunch of fixes (diff), including disabling pauseDelayOnHover by default (which happens to mask the issue).
Annoyingly, setting pauseDelayOnHover to false ends up not putting delay in the toast markout at all.... so whatever delay value you provide, it just uses Bootstrap default (5 seconds) instead.
The doc implies that
delay
argument can be omitted, and the toast will stay until manually dismissed:This does not seem to be the case... For example:
This piece of code runs right after the toast is shown:
If
delay
is omitted,opts.delay
here isundefined
, sosetTimeout
fires immediarely, and aspaused
isfalse
, the toast is immediately hidden...Even more confusingly, same code/bug is also present in the original library.. with the last commit years ago (.. how am I the first one discovering this?).
The text was updated successfully, but these errors were encountered: