answered on 14 Feb 2022, 09:11 AM
| edited on 14 Feb 2022, 12:51 PM
I have a similar async problem with Dialog, please check my scenario in this example link. In this scenario I expecting to see the dialog after 2 seconds when you press the button 'Show', so seems that Dialog doesn't like to be called asynchronously and leads to my question: is there any async-oriented call to show the Dialog or any workaround to make it work in this kind of scenario? Thanks in advance.
I've solved the problem by replacing the line 29 from DialogRef.Refresh() to StateHasChanged() so the UI is manually refreshed when the async Task finishes