Skip to content

Commit

Permalink
#676 [HxInputDateRange] Using FluentValidationValidator to require no…
Browse files Browse the repository at this point in the history
…n null value for HxDateTimeRange tries to create 2 spans with the same key.
  • Loading branch information
hakenr committed Dec 7, 2023
1 parent 934bee2 commit a2bff27
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
bool firstRendered = false;
foreach (string message in messages)
{
<span @key="@message" title="@message" class=@CssClassHelper.Combine(firstRendered ? "ms-1" : String.Empty) >@message</span>
/* Do not use the @key here, as it appears that when the FluentValidationValidator is used, it sometimes results in duplicate messages. */
<span title="@message" class=@CssClassHelper.Combine(firstRendered ? "ms-1" : String.Empty) >@message</span>
firstRendered = true;
}
}
Expand Down

0 comments on commit a2bff27

Please sign in to comment.