fix(module: notification): change sync statehaschanged to async (#3400)

This commit is contained in:
zxyao 2023-08-24 22:33:00 +08:00 committed by GitHub
parent b5df6d5ce5
commit 7524e40f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;