Skip to content

Commit 54208fb

Browse files
committed
refactor: 完善逻辑
1 parent 6907d76 commit 54208fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Components/Toast/Toast.razor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ export function update(id) {
4949
progressElement.style.width = '100%';
5050
progressElement.style.transition = `width linear ${delay / 1000}s`;
5151
}
52+
else {
53+
toast._config.autohide = false;
54+
progressElement.style.removeProperty('width');
55+
progressElement.style.removeProperty('transition');
56+
}
5257
}
5358

5459
export function dispose(id) {

0 commit comments

Comments
 (0)