Skip to content

Commit

Permalink
🐛 fix(Form): validation fails after Model changed (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem committed Nov 1, 2024
1 parent 96f6283 commit 0bf2dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Masa.Blazor/Components/Form/MForm.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

@if (EditContext is not null)
{
<Masa.Blazor.Components.Form.ObjectGraphDataAnnotationsValidator />
<Masa.Blazor.Components.Form.FluentValidationValidator />
<Masa.Blazor.Components.Form.ObjectGraphDataAnnotationsValidator @key="EditContext" />
<Masa.Blazor.Components.Form.FluentValidationValidator @key="EditContext" />
}
</form>
</CascadingValue>
Expand Down

0 comments on commit 0bf2dbd

Please sign in to comment.