Skip to content

Commit 8c5be79

Browse files
committed
Use onclick shorthand to ensure async-ness
1 parent d4b65fe commit 8c5be79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlazorContextMenu/Components/Item.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<li @attributes="Attributes"
88
id="@Id"
9-
@onclick="@((e) => OnClickInternal(e))"
9+
@onclick="OnClickInternal"
1010
class="@("blazor-context-menu__item " + ClassCalc)"
1111
style="@(Visible ? "display:block;" : "display:none;")"
1212
itemEnabled="@Enabled.ToString().ToLower()"

0 commit comments

Comments
 (0)