Skip to content

fix(Pivot): Fix pivot selector error when initializing. Fix adding row dimension with API - #17593

Merged
ChronosSF merged 7 commits into
22.1.xfrom
mdragnev/fix-pivot-22.1.x
Sep 14, 2026
Merged

ChronosSF merged 7 commits into
22.1.xfrom
mdragnev/fix-pivot-22.1.x

Conversation

@mddragnev

@mddragnev mddragnev commented Sep 10, 2026

Copy link
Copy Markdown
Member

Closes #17590 #17591

Description

Fix pivot selector initialization.
Fix row adding through the insertDimensionAt public API

Motivation / Context

Those issues are regressed with the removal of the zone.js from the repo.

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

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
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new IgxPivotDataSelectorComponent grid @Input setter can throw at runtime when Angular sets the input to undefined/null during initialization or teardown.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR addresses pivot-grid regressions introduced by removing zone.js, focusing on ensuring pivot selector initialization doesn’t throw change-detection errors and that row-dimension insertion via the public API updates immediately.

Changes:

  • Emit pivotConfigurationChange when the pivot configuration is set during initialization to notify external listeners like the pivot selector.
  • Trigger change detection after inserting non-filter dimensions via insertDimensionAt to ensure the grid updates without relying on incidental CD triggers.
  • Update the pivot data selector to retrigger its filtering pipe on configuration changes and add unit coverage for both the core grid and Angular Elements scenarios.
File summaries
File Description
projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.component.ts Emits config-change on initial config set; schedules CD after dimension insertion.
projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.ts Subscribes to pivotConfigurationChange and retriggers selector filtering + marks for check.
projects/igniteui-angular/grids/pivot-grid/src/pivot-data-selector.component.html Switches filter pipe trigger input from grid?.pipeTrigger to local pipeRetrigger.
projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.spec.ts Adds unit test for inserting a row dimension into a freshly assigned config.
projects/igniteui-angular-elements/src/app/custom-strategy.spec.ts Adds Elements test to validate pivot grid + pivot selector initialization.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread projects/igniteui-angular/grids/pivot-grid/src/pivot-grid.spec.ts Outdated
@skrustev skrustev added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Sep 11, 2026
@ChronosSF
ChronosSF merged commit a412698 into 22.1.x Sep 14, 2026
5 checks passed
@ChronosSF
ChronosSF deleted the mdragnev/fix-pivot-22.1.x branch September 14, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💠 grid: elements grid: pivot version: 22.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.

5 participants