Unplanned
Last Updated: 08 Mar 2024 08:13 by ADMIN
Alex
Created on: 07 Feb 2024 09:44
Category: Editor
Type: Bug Report
0
Editor Value doesn't display when set in OnAfterRenderAsync after JSInterop call

The Editor is not showing its Value in the following scenario:

  • Using JSInterop in OnAfterRenderAsync
  • Setting the Editor Value in OnAfterRenderAsync and after the JSInterop call
  • Blazor Server app (seems to work in WebAssembly)

Possible workarounds are:

  • Set the Editor Value and call StateHasChanged() before using JSInterop in OnAfterRenderAsync, or
  • Add some small delay (for example, await Task.Delay(100); ) before using JSInterop.
0 comments