Skip to content

Commit

Permalink
Fix: adding nav menu initialization in uishell
Browse files Browse the repository at this point in the history
  • Loading branch information
mouadcherkaoui committed Mar 20, 2020
1 parent 943b0b7 commit 3e9d1b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/BxBlazor/Components/UIShell/BxUIShell.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!--
@inject IJSRuntime js
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
Expand Down Expand Up @@ -39,4 +40,10 @@

[Parameter]
public RenderFragment ChildContent { get; set; }

protected override async Task OnAfterRenderAsync(bool firstRender)
{
await js.InvokeVoidAsync("InitComponent", "NavigationMenu");
await base.OnAfterRenderAsync(firstRender);
}
}

0 comments on commit 3e9d1b4

Please sign in to comment.