From a2bff2750de418821d0e06e3c80c173dd94b07dc Mon Sep 17 00:00:00 2001 From: Robert Haken Date: Thu, 7 Dec 2023 15:40:25 +0100 Subject: [PATCH] #676 [HxInputDateRange] Using FluentValidationValidator to require non null value for HxDateTimeRange tries to create 2 spans with the same key. --- .../Forms/HxValidationMessage.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Havit.Blazor.Components.Web.Bootstrap/Forms/HxValidationMessage.razor b/Havit.Blazor.Components.Web.Bootstrap/Forms/HxValidationMessage.razor index 4ce6ad859..4483d8900 100644 --- a/Havit.Blazor.Components.Web.Bootstrap/Forms/HxValidationMessage.razor +++ b/Havit.Blazor.Components.Web.Bootstrap/Forms/HxValidationMessage.razor @@ -18,7 +18,8 @@ bool firstRendered = false; foreach (string message in messages) { - @message + /* Do not use the @key here, as it appears that when the FluentValidationValidator is used, it sometimes results in duplicate messages. */ + @message firstRendered = true; } }