Skip to content

Commit 06826b0

Browse files
committed
fix(ContextMenuTrigger): 防止裁剪导致右键菜单定位失败
1 parent 6ec11ee commit 06826b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -59,7 +59,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
5959
/// <summary>
6060
/// 点击 ContextMenu 菜单项时触发
6161
/// </summary>
62-
/// <returns></returns>
62+
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(MouseEventArgs))]
6363
public Task OnContextMenu(MouseEventArgs args) => ContextMenuZone.OnContextMenu(args, ContextItem);
6464

6565
/// <summary>

0 commit comments

Comments
 (0)