Skip to content

Commit

Permalink
🐛 fix(Form): @key must be unique (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem committed Nov 1, 2024
1 parent 0bf2dbd commit 3f21c56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Masa.Blazor/Components/Form/MForm.razor
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
@if (EditContext is not null)
{
<Masa.Blazor.Components.Form.ObjectGraphDataAnnotationsValidator @key="EditContext" />
<Masa.Blazor.Components.Form.FluentValidationValidator @key="EditContext" />
@*the @key must be unique, so use the Model in the following code*@
<Masa.Blazor.Components.Form.FluentValidationValidator @key="Model" />
}
</form>
</CascadingValue>
Expand Down

0 comments on commit 3f21c56

Please sign in to comment.