Skip to content

Commit

Permalink
Update HtmlFieldPrefix.cs
Browse files Browse the repository at this point in the history
This a fix for nested Editor<T> described in this issue: dotnet#53956
  • Loading branch information
sgarnovsky authored Nov 12, 2024
1 parent 036ec9e commit fe80d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Web/src/Forms/HtmlFieldPrefix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public HtmlFieldPrefix Combine(LambdaExpression other)
var restLength = _rest?.Length ?? 0;
var length = restLength + 1;
var expressions = new LambdaExpression[length];
for (var i = 0; i < restLength - 1; i++)
for (var i = 0; i < restLength; i++)
{
expressions[i] = _rest![i];
}
Expand Down

0 comments on commit fe80d94

Please sign in to comment.