Skip to content

Comments

MudDialogProvider: Add CloseOnNavigation to DialogOptions to optionally close dialogs on navigation#12437

Merged
danielchalmers merged 39 commits intoMudBlazor:devfrom
aaronleev:fix-#10397
Feb 4, 2026
Merged

MudDialogProvider: Add CloseOnNavigation to DialogOptions to optionally close dialogs on navigation#12437
danielchalmers merged 39 commits intoMudBlazor:devfrom
aaronleev:fix-#10397

Conversation

@aaronleev
Copy link
Contributor

@aaronleev aaronleev commented Jan 13, 2026

Added CloseOnNavigation property to DialogOptions and implemented the use case for that property.
This use case also required that the IDialogReference now have access to the DialogOptions that were supplied during its creation.

This change fixes an issue with same page navigation where url changes automatically close all dialogs regardless of the navigation destination being somewhere different or the same page simply updating a parameter.

Checklist:

  • I've read the contribution guidelines
  • My code follows the style of this project
  • I've added or updated relevant unit tests.

@mudbot mudbot bot added the enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library label Jan 13, 2026
@aaronleev aaronleev changed the title MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (#10397) MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (https://github.com/MudBlazor/MudBlazor/issues/10397) Jan 14, 2026
@aaronleev aaronleev changed the title MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (https://github.com/MudBlazor/MudBlazor/issues/10397) MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (10397) Jan 14, 2026
@aaronleev aaronleev changed the title MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (10397) MudDialogProvider: Added CloseOnNavigation to DialogOptions to optionally close dialogs on navigation. (#10397) Jan 14, 2026
This was referenced Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants