Skip to content

Conversation

@Mr-KRAMA
Copy link
Contributor

@Mr-KRAMA Mr-KRAMA commented Dec 1, 2025

Added async support to closePredicate so dialogs can wait for confirmation or server checks before closing.
The old sync behavior still works.
Tests added for async true and false cases.
All tests pass.
Risk is low and backward compatible.
Fixes issue 32142.

@Mr-KRAMA Mr-KRAMA requested a review from a team as a code owner December 1, 2025 15:47
@Mr-KRAMA Mr-KRAMA requested review from crisbeto and wagnermaciel and removed request for a team December 1, 2025 15:47
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: material/dialog labels Dec 1, 2025
@crisbeto
Copy link
Member

crisbeto commented Dec 1, 2025

Aside from the breakages in the build, this is also still a breaking behavior change. The reason we haven't done this ourselves is that by making the callback asynchronous, we can't guarantee the closing order anymore which can come up when opening multiple dialogs on top of each other.

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

Labels

area: material/dialog detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants