Skip to content

Commit 7d92c07

Browse files
uazorynowak
authored andcommitted
fix HtmlBlock codegen (#1209)
1 parent 78045b2 commit 7d92c07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.AspNetCore.Blazor.Razor.Extensions/BlazorRuntimeNodeWriter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public override void WriteHtmlBlock(CodeRenderingContext context, HtmlBlockInter
160160
throw new ArgumentNullException(nameof(node));
161161
}
162162

163+
_scopeStack.IncrementCurrentScopeChildCount(context);
164+
163165
context.CodeWriter
164166
.WriteStartMethodInvocation($"{_scopeStack.BuilderVarName}.{nameof(BlazorApi.RenderTreeBuilder.AddMarkupContent)}")
165167
.Write((_sourceSequence++).ToString())

0 commit comments

Comments
 (0)