mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-01 19:48:17 +08:00
fix(module: notification): change sync statehaschanged to async (#3400)
This commit is contained in:
parent
b5df6d5ce5
commit
7524e40f40
@ -228,7 +228,7 @@ namespace AntDesign
|
||||
if (option.AnimationClass == AnimationType.Enter)
|
||||
{
|
||||
option.AnimationClass = AnimationType.Leave;
|
||||
StateHasChanged();
|
||||
await InvokeStateHasChangedAsync();
|
||||
|
||||
option.InvokeOnClose();
|
||||
|
||||
@ -245,7 +245,7 @@ namespace AntDesign
|
||||
}
|
||||
|
||||
//when next notification item fade out or add new notice item, item will toggle StateHasChanged
|
||||
StateHasChanged();
|
||||
await InvokeStateHasChangedAsync();
|
||||
}
|
||||
|
||||
//return Task.CompletedTask;
|
||||
|
Loading…
Reference in New Issue
Block a user