Skip to content

fix(igxGrid): Add handling for outlet in case actionstrip is added post init#17162

Merged
dkamburov merged 3 commits into21.1.xfrom
mkirova/fix-16850-21.1.x
Apr 6, 2026
Merged

fix(igxGrid): Add handling for outlet in case actionstrip is added post init#17162
dkamburov merged 3 commits into21.1.xfrom
mkirova/fix-16850-21.1.x

Conversation

@MayaKirova
Copy link
Copy Markdown
Contributor

…st init.

Closes #16850

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@MayaKirova MayaKirova requested a review from IMinchev64 April 6, 2026 10:50
@MayaKirova MayaKirova added ❌ status: awaiting-test PRs awaiting manual verification action-strip labels Apr 6, 2026
Copilot AI review requested due to automatic review settings April 6, 2026 10:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a grid ActionStrip overlay configuration edge case where the ActionStrip is added after the grid has already completed content initialization, ensuring the ActionStrip menu overlay uses the grid’s outlet.

Changes:

  • Subscribe to actionStripComponents.changes in IgxGridBaseDirective.ngAfterContentInit() and (re)apply menuOverlaySettings.outlet when an ActionStrip appears later.
  • Add a dedicated test component that toggles an ActionStrip via control flow (@if) after initial render.
  • Add a unit test verifying the dynamically added ActionStrip menu overlay outlet is set to grid.outlet.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
projects/igniteui-angular/test-utils/grid-samples.spec.ts Adds a test-only grid component that can dynamically render an ActionStrip after init.
projects/igniteui-angular/grids/grid/src/grid-base.directive.ts Updates grid lifecycle wiring to re-apply ActionStrip menu outlet when ActionStrip content children change.
projects/igniteui-angular/grids/grid/src/grid-add-row.spec.ts Adds a regression test covering dynamic ActionStrip insertion and outlet assignment.

@dkamburov dkamburov added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Apr 6, 2026
@dkamburov dkamburov merged commit 00f70ed into 21.1.x Apr 6, 2026
9 checks passed
@dkamburov dkamburov deleted the mkirova/fix-16850-21.1.x branch April 6, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-strip version: 21.1.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants