fix(uns): @key node rows for stable Blazor diffing (review)
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
{
|
||||
var indent = $"padding-left:{depth * 18}px";
|
||||
var hasExpander = node.Children.Count > 0 || node.HasLazyChildren;
|
||||
<div class="d-flex align-items-center gap-1 py-1" style="@indent">
|
||||
<div @key="node.Key" class="d-flex align-items-center gap-1 py-1" style="@indent">
|
||||
@if (hasExpander)
|
||||
{
|
||||
<button type="button" class="btn btn-sm btn-link p-0"
|
||||
|
||||
Reference in New Issue
Block a user