The title explains it well.
if(this._timeout !== null) {
clearTimeout(this._timeout)
}
The code above should be added in show() for the toast class at https://github.com/twbs/bootstrap/blob/9e4e94747bd698f4f61d48ed54c9c6d4d199bd32/js/src/toast.js#L80
Don't think there is need for a test case.
Hi @karimcambridge,
I tried to reproduce your issue but I'm not able to 馃槦
See my CodePen: https://codepen.io/Johann-S/pen/QYqrPw
https://codepen.io/karimcambridge/pen/RvLdGr
Try now, with a larger data-delay (5000).
Hmm ok now I understand 馃憤
For me in this particular use case, I would call manually show and hide method to avoid that behavior, but you're right we should fix that 馃憤
Thank you.
FYI for anyone still grappling with this, I worked around it by "disposing" of the toast before showing it again.
Same, but needs to be fixed.
Has this been fixed?
Most helpful comment
Same, but needs to be fixed.