We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441aee0 commit 34ee193Copy full SHA for 34ee193
src/BootstrapBlazor/Components/Message/Message.razor.js
@@ -14,11 +14,16 @@ export function show(id, msgId) {
14
return
15
}
16
17
- const msgItem = { el, animationId: null }
18
- if (msg.items.find(i => i.el.id === msgId) === void 0) {
+ let msgItem = msg.items.find(i => i.el.id === msgId)
+ if (msgItem === void 0) {
19
+ msgitem = { el, animationId: null }
20
msg.items.push(msgItem)
21
22
23
+ if (msgitem.animationId) {
24
+ cancelAnimationFrame(msgitem.animationId);
25
+ }
26
+
27
const autoHide = el.getAttribute('data-bb-autohide') === 'true';
28
if (autoHide) {
29
const delay = parseInt(el.getAttribute('data-bb-delay'));
0 commit comments