Repository navigation
[dev-v5] fix: prevent global overlay spinner flash when opening dialogs - #5283
Merged
Vincent Baaij (vnbaaij) merged 1 commit intoSep 16, 2026
Conversation
James Newton-King (JamesNK)
requested review from
Denis Voituron (dvoituron) and
Vincent Baaij (vnbaaij)
as code owners
September 16, 2026 13:34
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified.
Pull request overview
Prevents the global overlay spinner flash by preserving dialog component identity during provider reordering.
Changes:
- Adds stable
@keyvalues to provider-rendered components. - Adds a regression test verifying overlay instance preservation.
File summaries
| File | Description |
|---|---|
tests/Core/Components/Dialog/Overlay/OverlayServiceTests.razor |
Verifies the global overlay instance survives dialog creation. |
src/Core/Components/Dialog/FluentDialogProvider.razor |
Keys rendered dialog, overlay, and input-file components by ID. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Vincent Baaij (vnbaaij)
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
📖 Description
Preserves component identity for items rendered by
FluentDialogProviderby keying each item with its stable dialog ID.Previously, the global overlay has the highest sort index and moved from the first rendered position to the last when a normal dialog was added. Without keys, Blazor removed and recreated the global
FluentOverlay. Its light-DOM spinner could paint briefly before deferred web-component initialization moved it behind the closed shadow-DOM dialog.🎫 Issues
Closes #5282
👩💻 Reviewer Notes
A smoke test is recommended: open a service-driven dialog while the global overlay is enabled and confirm that no spinner flashes before the dialog appears.
The regression test verifies that the same
FluentOverlaycomponent instance remains after a normal dialog is added.📑 Test Plan
dotnet test tests/Core/Components.Tests.csproj --configuration Debug --no-restore --nologo --verbosity minimal— 4,417 passeddotnet build Microsoft.FluentUI-v5.slnx --configuration Debug --no-restore --nologo --verbosity minimal— succeeded/Dialogdemo:✅ Checklist
General
Component-specific
⏭ Next Steps
None.