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
good catch. I'll have to find time to look into this. If anyone has suggestions or a pull request, feel free. The new method is now onHidden as onFadeOut is being deprecated with v2.0.0
the same issue also happens on the onHidden in the function hideToast.
I am using Version 2.0.1
I updated the following lines
if (options.onHidden) {
options.onHidden();
}
to
if (options.onHidden && response.state!='hidden') {
options.onHidden();
}
The event "onFadeOut" fires twice if you dismiss a toast by clicking on it and then move your mouse cursor away.
You can test this by doing the following:
Tested with:
Using
I fixed this by adding
&& response.state != 'hidden'
tofadeAway()
, but there may be a better solution.The text was updated successfully, but these errors were encountered: