From 9517c950ef7981c8eaa5bafb59cb37df6e30ece5 Mon Sep 17 00:00:00 2001 From: Anu6is Date: Fri, 20 Dec 2024 11:10:43 -0400 Subject: [PATCH] Nav components do not require a page reload --- src/Components/NavMenu/MudStaticNavDrawerToggle.razor | 1 - src/Components/NavMenu/MudStaticNavGroup.razor | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Components/NavMenu/MudStaticNavDrawerToggle.razor b/src/Components/NavMenu/MudStaticNavDrawerToggle.razor index e342075..f6b0526 100644 --- a/src/Components/NavMenu/MudStaticNavDrawerToggle.razor +++ b/src/Components/NavMenu/MudStaticNavDrawerToggle.razor @@ -24,7 +24,6 @@ protected override void OnParametersSet() { UserAttributes["data-mud-drawer-toggle"] = DrawerId; - UserAttributes["data-static-component"] = true; UserAttributes["data-static-id"] = _elementId; base.OnClick = EventCallback.Factory.Create(this, async () => await JsRuntime.InvokeVoidAsync("MudDrawerInterop.toggleDrawer", DrawerId)); diff --git a/src/Components/NavMenu/MudStaticNavGroup.razor b/src/Components/NavMenu/MudStaticNavGroup.razor index ac03e5e..d12dde4 100644 --- a/src/Components/NavMenu/MudStaticNavGroup.razor +++ b/src/Components/NavMenu/MudStaticNavGroup.razor @@ -11,7 +11,6 @@ protected override void OnParametersSet() { - UserAttributes["data-static-component"] = true; UserAttributes["data-static-id"] = _elementId; base.OnParametersSet();