Skip to content

Commit 8a7ac71

Browse files
Better trimming support (#594)
* Better trimming support * nit * Remove Linker.xml --------- Co-authored-by: Mehmet Can Karagöz <m.cankaragoz@outlook.com>
1 parent 71b49a0 commit 8a7ac71

File tree

4 files changed

+7
-19
lines changed

4 files changed

+7
-19
lines changed

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

Lines changed: 4 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

@@ -16,6 +17,8 @@ public abstract class MudBaseInputExtended<T> : MudBaseInput<T>
1617
/// <summary>
1718
///
1819
/// </summary>
20+
[DynamicDependency(nameof(OnBeforeInputFromJs))]
21+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BeforeInputJsDto))]
1922
protected MudBaseInputExtended()
2023
{
2124
//using var registerScope = CreateRegisterScope();

src/CodeBeam.MudBlazor.Extensions/CodeBeam.MudBlazor.Extensions.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
<SassCompilerEnableWatcher>false</SassCompilerEnableWatcher>
3030
</PropertyGroup>
3131

32-
<ItemGroup>
33-
<TrimmerRootDescriptor Include="Linker.xml" />
34-
</ItemGroup>
35-
3632
<ItemGroup>
3733
<SupportedPlatform Include="browser" />
3834
</ItemGroup>

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);

src/CodeBeam.MudBlazor.Extensions/Linker.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)