Skip to content

Commit c7d4d8f

Browse files
committed
Better trimming support
1 parent 71b49a0 commit c7d4d8f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/CodeBeam.MudBlazor.Extensions/Base/MudBaseInputExtended.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
using Microsoft.AspNetCore.Components;
1+
using System.Diagnostics.CodeAnalysis;
2+
using Microsoft.AspNetCore.Components;
23
using Microsoft.JSInterop;
34
using MudBlazor;
5+
using MudBlazor.Services;
46

57
namespace MudExtensions
68
{
@@ -16,6 +18,8 @@ public abstract class MudBaseInputExtended<T> : MudBaseInput<T>
1618
/// <summary>
1719
///
1820
/// </summary>
21+
[DynamicDependency(nameof(OnBeforeInputFromJs))]
22+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BeforeInputJsDto))]
1923
protected MudBaseInputExtended()
2024
{
2125
//using var registerScope = CreateRegisterScope();

src/CodeBeam.MudBlazor.Extensions/Components/SignaturePad/MudSignaturePad.razor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Components;
1+
using System.Diagnostics.CodeAnalysis;
2+
using Microsoft.AspNetCore.Components;
23
using Microsoft.JSInterop;
34
using MudBlazor;
45
using MudBlazor.Services;
@@ -15,6 +16,7 @@ public partial class MudSignaturePad : ComponentBase, IBrowserViewportObserver,
1516
/// <summary>
1617
/// Constructor for MudSignaturePad.
1718
/// </summary>
19+
[DynamicDependency(nameof(SignatureDataChangedAsync))]
1820
public MudSignaturePad()
1921
{
2022
_dotnetObjectRef = DotNetObjectReference.Create<MudSignaturePad>(this);

0 commit comments

Comments
 (0)