mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: form): validation message unique (#1391)
This commit is contained in:
parent
3abec5f4ba
commit
555e398336
@ -202,7 +202,7 @@ namespace AntDesign
|
||||
|
||||
CurrentEditContext.OnValidationStateChanged += (s, e) =>
|
||||
{
|
||||
control.ValidationMessages = CurrentEditContext.GetValidationMessages(control.FieldIdentifier).ToArray();
|
||||
control.ValidationMessages = CurrentEditContext.GetValidationMessages(control.FieldIdentifier).Distinct().ToArray();
|
||||
this._isValid = !control.ValidationMessages.Any();
|
||||
|
||||
StateHasChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user