Skip to content

Commit 7848662

Browse files
authored
πŸ› fix(NavigationDrawer): remove default values for list components (#2563)
1 parent 545de88 commit 7848662

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

β€Žsrc/Masa.Blazor/Components/NavigationDrawer/MNavigationDrawer.razorβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
@GenPosition("prepend")
3030

3131
<div class="@_block.Element("content")">
32-
<MDefaultsProvider Defaults="@_defaults">
33-
@ChildContent
34-
</MDefaultsProvider>
32+
@ChildContent
3533
</div>
3634

3735
@GenPosition("append")

β€Žsrc/Masa.Blazor/Components/NavigationDrawer/MNavigationDrawer.razor.csβ€Ž

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,6 @@ public bool? Value
125125
private static Block _block = new("m-navigation-drawer");
126126
private ModifierBuilder _modifierBuilder = _block.CreateModifierBuilder();
127127

128-
private readonly Dictionary<string, IDictionary<string, object?>> _defaults
129-
= new()
130-
{
131-
[nameof(MList)] = new Dictionary<string, object?>()
132-
{
133-
[nameof(MList.BackgroundColor)] = "transparent"
134-
}
135-
};
136-
137128
private bool _prevPermanent;
138129
private bool _prevIsMobile;
139130
private StringNumber _prevWidth;

0 commit comments

Comments
Β (0)