Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Workaround bug in interaction provider when displaying dialogs on load
  • Loading branch information
JamesNK authored and github-actions committed Nov 17, 2025
commit 400e628f710af64db643c618e1c263bf3b303a46
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ protected override void OnInitialized()

_watchInteractionsTask = Task.Run(async () =>
{
// There is a bug in FluentDialogProvider that causes it to error if used immediately because it's still loading its own JavaScript.
// Wait a small amount of time for it to get ready.
//
// TODO: Remove when https://github.com/microsoft/fluentui-blazor/issues/4311 is fixed.
await Task.Delay(TimeSpan.FromSeconds(2));

try
{
await WatchInteractionsAsync().ConfigureAwait(false);
Expand Down