diff --git a/FluentValidationProblem/BlazorApp1/Components/Pages/Home.razor b/FluentValidationProblem/BlazorApp1/Components/Pages/Home.razor
index 991e46c..223db3c 100644
--- a/FluentValidationProblem/BlazorApp1/Components/Pages/Home.razor
+++ b/FluentValidationProblem/BlazorApp1/Components/Pages/Home.razor
@@ -3,7 +3,7 @@
@using MudBlazor
@rendermode InteractiveServer
-
+
@@ -41,7 +41,9 @@
-@code{
+@code {
+ private FluentValidationValidator? _fluentValidationValidator;
+
List _allCars = new();
Person _person = new();
private EditContext _editContext;
@@ -65,9 +67,10 @@
_person.Cars.Remove(car);
_editContext.NotifyFieldChanged(new FieldIdentifier(car, "Name"));
_editContext.NotifyFieldChanged(new FieldIdentifier(_person, "Cars"));
+ _fluentValidationValidator?.Validate();
}
}
-
+
private void NameChanged(Car car)
{
_editContext.NotifyFieldChanged(new FieldIdentifier(car, "Name"));