Skip to content

Commit

Permalink
feat(antdesign): fix validation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 14, 2022
1 parent 8316843 commit b7004f0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@using Microsoft.AspNetCore.Components.Forms
@foreach (var message in CurrentEditContext.GetValidationMessages(BlockForm.FieldIdentifier).Distinct().ToArray())
{
<FormValidationMessageItem Message="@message" @key="message"></FormValidationMessageItem>
<div class=@($"ant-form-item-explain ant-form-item-explain-error") @key="message">
<div role="alert">
@message
</div>
</div>
}

@code
Expand Down

0 comments on commit b7004f0

Please sign in to comment.