Skip to content

Commit 0c6cb44

Browse files
committed
fix: 修复异步消息未清除 dom 问题
1 parent acb9295 commit 0c6cb44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Message/Message.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ private async Task Show(MessageOption option)
132132
if (!_messages.Contains(option))
133133
{
134134
_messages.Add(option);
135-
_msgId = GetItemId(option);
136135
}
136+
_msgId = GetItemId(option);
137137
await InvokeAsync(StateHasChanged);
138138
}
139139

0 commit comments

Comments
 (0)