protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); if (OnUnload.HasDelegate && !_UnloadTriggered) { await OnUnload.InvokeAsync(EventArgs.Empty); _UnloadTriggered = true; } }
protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); if (OnUnload.HasDelegate && !_UnloadTriggered) { await OnUnload.InvokeAsync(EventArgs.Empty); _UnloadTriggered = true; } if (firstRender) { HandleUnknownAttributes(); StateHasChanged(); } }
protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); if (OnUnload.HasDelegate && !_UnloadTriggered) { await OnUnload.InvokeAsync(EventArgs.Empty); _UnloadTriggered = true; } if (firstRender) { HandleUnknownAttributes(); StateHasChanged(); var Page = await JsRuntime.InvokeAsync <IJSObjectReference>("import", JsScripts.Page.ScriptURI); await Page.InvokeVoidAsync(JsScripts.Page.OnAfterRender); } }