Skip to content

fix: refresh portal content on re-render for Dialog and Sheet (#118) - #121

Merged
mathewtaylor merged 2 commits into
mainfrom
fix/118-dialog-portal-refresh
Feb 10, 2026
Merged

fix: refresh portal content on re-render for Dialog and Sheet (#118)#121
mathewtaylor merged 2 commits into
mainfrom
fix/118-dialog-portal-refresh

Conversation

@mathewtaylor

Copy link
Copy Markdown
Contributor

Summary

  • Add PortalService.RefreshPortal() call to DialogPortal.OnParametersSet when the portal is already registered, fixing stale content in Blazor Server where state changes inside dialog content wouldn't trigger a re-render
  • Switch SheetPortal from UpdatePortalContent() to RefreshPortal() to match the correct pattern used by FloatingPortal, and remove the unused UpdatePortal() method
  • Both portals now consistently use RefreshPortal which notifies PortalHost to re-render without replacing the RenderFragment delegate

Closes #118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: DialogPortal does not refresh portal on re-render, causing stale content in Blazor Server

1 participant