Skip to content

Commit

Permalink
Nav components do not require a page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu6is committed Dec 20, 2024
1 parent 167abe2 commit 9517c95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Components/NavMenu/MudStaticNavDrawerToggle.razor
Original file line number Diff line number Diff line change
Expand Up @@ -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<MouseEventArgs>(this, async () => await JsRuntime.InvokeVoidAsync("MudDrawerInterop.toggleDrawer", DrawerId));
Expand Down
1 change: 0 additions & 1 deletion src/Components/NavMenu/MudStaticNavGroup.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

protected override void OnParametersSet()
{
UserAttributes["data-static-component"] = true;
UserAttributes["data-static-id"] = _elementId;

base.OnParametersSet();
Expand Down

0 comments on commit 9517c95

Please sign in to comment.