You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
and when SimplePage.cshtml rendered you will see the following wrong html:
...
<hr />
"""
<h4>View Component title.</h4><ul><li><pclass="text-capitalize text-success style="font-size:110%;font-weight:600">
Item #1
<spanstyle="font-size: 80%; color: #bbb">[Hint of title.]</span></p><p>...</p></li><li>
...
<hr />
<pclass="text-capitalize text-success" style="font-size: 110%; font-weight: 600">
This separate item!
<spanstyle="font-size: 80%; color: #bbb">[Hint of title.]</span></p><p>...</p>
...
The @(Component.Invoke<... not rendered end quotation mark of class attribute (where text-success), ie generator move it to wrong place after <hr />.
But @content("This separate item!") rendered success, ie quotation mark in its place.
The text was updated successfully, but these errors were encountered:
Looks like a code generation bug. We're unconditionally rendering the EndWriteAttribute method here. When in fact we should be rendering the EndWriteAttributeTo variation if !string.IsNullOrEmpty(Context.TargetWriterName). Much like what we do for the BeginWriteAttribute variation.
the following code demonstrate it:
ViewComponents\SimpleViewComponent.cs
Views\Shared\Components\Simple\Default.cshtml
Views\Home\SimplePage.cshtml
and when SimplePage.cshtml rendered you will see the following wrong html:
The
@(Component.Invoke<...
not rendered end quotation mark of class attribute (wheretext-success
), ie generator move it to wrong place after<hr />
.But
@content("This separate item!")
rendered success, ie quotation mark in its place.The text was updated successfully, but these errors were encountered: