diff --git a/Source/Lib/Morris.Blazor.FluentValidation/FluentValidationValidatorProvider.cs b/Source/Lib/Morris.Blazor.FluentValidation/FluentValidationValidatorProvider.cs index f00f258..58fb712 100644 --- a/Source/Lib/Morris.Blazor.FluentValidation/FluentValidationValidatorProvider.cs +++ b/Source/Lib/Morris.Blazor.FluentValidation/FluentValidationValidatorProvider.cs @@ -125,6 +125,7 @@ private void GetParentObjectAndPropertyName( List collection = ((IEnumerable)model).ToList(); int propertyIndex = int.Parse(propertyIndexString); model = collection[propertyIndex]; + modelType = model.GetType(); } }