Skip to content

Commit 81c7c47

Browse files
committed
refactor: 精简代码
1 parent 5529bd5 commit 81c7c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
else if (context is ContextMenuItem item)
1717
{
1818
var disabled = GetItemTriggerClick(item);
19-
<DynamicElement @key="item" TagName="div" class="@GetItemClassString(disabled)"
19+
<DynamicElement @key="item" class="@GetItemClassString(disabled)"
2020
TriggerClick="!disabled" OnClick="() => OnClickItem(item)">
2121
<i class="@GetItemIconString(item)"></i>
2222
<span>@item.Text</span>

0 commit comments

Comments
 (0)