Repository navigation
fix(dialog): mark view for check when open() is called programmatically - #17757
Open
viktorkombov wants to merge 3 commits into
Open
viktorkombov wants to merge 3 commits into
viktorkombov wants to merge 3 commits into
Conversation
The igx-dialog--hidden host class is refreshed by the parent view, so calling open() from an OnPush parent or an async callback left the dialog hidden. IgxToggleDirective.open() only runs detectChanges() on its own view, while the close path already calls markForCheck(). Add markForCheck() to IgxDialogComponent.open() and cover the parent call and async callback cases in both zoneless and ZoneJS mode.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Static review identified no blocking issues in the targeted fix or regression coverage; tests were not executed.
0 open findings
What changed in this PR
Fixes programmatic dialog opening when nested OnPush components would otherwise leave the dialog hidden.
Changes:
- Marks the dialog view for checking after opening.
- Adds click and asynchronous-opening regression tests for zoneless and ZoneJS modes.
- Documents programmatic opening behavior.
| File | Description |
|---|---|
| projects/igniteui-angular/dialog/src/dialog/dialog.component.ts | Notifies Angular after opening the dialog. |
| projects/igniteui-angular/dialog/src/dialog/dialog.component.spec.ts | Tests nested component and asynchronous opening. |
| projects/igniteui-angular/dialog/README.md | Documents automatic view refresh. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
- Remove the JSDoc from the test components. - Replace the looped describe blocks with explicit ones. - Drop the README section on programmatic opening. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mddragnev
approved these changes
Oct 9, 2026
This branch has not been deployed
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.
The igx-dialog--hidden host class is refreshed by the parent view, so calling open() from an OnPush parent or an async callback left the dialog hidden. IgxToggleDirective.open() only runs detectChanges() on its own view, while the close path already calls markForCheck().
Add markForCheck() to IgxDialogComponent.open() and cover the parent call and async callback cases in both zoneless and ZoneJS mode.
Closes #17578
Description
Motivation / Context
Type of Change (check all that apply):
Component(s) / Area(s) Affected:
How Has This Been Tested?
Test Configuration:
Screenshots / Recordings
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)