Skip to content

Commit

Permalink
issue - cyclic popover
Browse files Browse the repository at this point in the history
  • Loading branch information
blazej.kuhajda committed Dec 6, 2023
1 parent aefab35 commit 4573535
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ public partial class AxoMessengerDetailedView : RenderableComplexComponentBase<A

protected override async Task OnAfterRenderAsync(bool firstRender)
{
var jsObject = await js.InvokeAsync<IJSObjectReference>("import", "./_content/AXOpen.Core.Blazor/AxoMessenger/Static/AxoMessengerView.razor.js");
await jsObject.InvokeVoidAsync("addPopovers");
if (firstRender)
{
var jsObject = await js.InvokeAsync<IJSObjectReference>("import", "./_content/AXOpen.Core.Blazor/AxoMessenger/Static/AxoMessengerView.razor.js");
await jsObject.InvokeVoidAsync("addPopovers");
}
}

protected async Task<string?> GetCurrentUserName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ public partial class AxoMessengerView : RenderableComplexComponentBase<AxoMessen

protected override async Task OnAfterRenderAsync(bool firstRender)
{
var jsObject = await js.InvokeAsync<IJSObjectReference>("import", "./_content/AXOpen.Core.Blazor/AxoMessenger/Static/AxoMessengerView.razor.js");
await jsObject.InvokeVoidAsync("addPopovers");
if (firstRender)
{
var jsObject = await js.InvokeAsync<IJSObjectReference>("import", "./_content/AXOpen.Core.Blazor/AxoMessenger/Static/AxoMessengerView.razor.js");
await jsObject.InvokeVoidAsync("addPopovers");
}
}

protected async Task<string?> GetCurrentUserName()
Expand Down

0 comments on commit 4573535

Please sign in to comment.