Skip to content

Commit

Permalink
🐛 fix(Form): validation fails after Model changed
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem committed Nov 1, 2024
1 parent 06328bc commit cf46f2d
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 cf46f2d

Please sign in to comment.