Skip to content

Commit

Permalink
[FluentInputBase] Force EditContext to be re-associated with the Di…
Browse files Browse the repository at this point in the history
…spatcher (#2620)

Co-authored-by: Vincent Baaij <[email protected]>
  • Loading branch information
cduluCNB and vnbaaij authored Sep 6, 2024
1 parent a1ba63a commit 406d3fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Components/Base/FluentInputBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ protected async Task SetCurrentValueAsync(TValue? value)
}
if (FieldBound)
{
EditContext?.NotifyFieldChanged(FieldIdentifier);
// Thread Safety: Force `EditContext` to be re-associated with the Dispatcher
await InvokeAsync(() => EditContext?.NotifyFieldChanged(FieldIdentifier));
}
}

Expand Down

0 comments on commit 406d3fc

Please sign in to comment.