Skip to content

Conversation

@ddaribo
Copy link
Contributor

@ddaribo ddaribo commented Nov 26, 2025

Closes #16517

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

@ddaribo ddaribo force-pushed the bpachilova/ariaHidden-header-groups-fix-16517-20.1.x branch from 23b18a9 to 5d78e4e Compare November 26, 2025 09:42
@ddaribo ddaribo requested a review from Copilot November 26, 2025 09:42
@ddaribo ddaribo added the ❌ status: awaiting-test PRs awaiting manual verification label Nov 26, 2025
Copilot finished reviewing on behalf of ddaribo November 26, 2025 09:44
@ddaribo ddaribo linked an issue Nov 26, 2025 that may be closed by this pull request
@ddaribo ddaribo changed the title fix(grid): address null TypeError on focusing a grid with no data and column headers - 20.1. fix(grid): address null TypeError on focusing a grid with no data and column headers - 20.1.x Nov 26, 2025
Copy link
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

This PR fixes a null TypeError that occurs when focusing a grid with no data and column headers, addressing issue #16517. The fix adds optional chaining to safely handle cases where activeNode may be null.

  • Added optional chaining (?.) to two header component getters that access navigation.activeNode.row
  • Added a unit test to verify the fix prevents the TypeError when focusing an empty grid

Reviewed changes

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

File Description
grid-header-row.component.ts Added optional chaining to isLeafHeaderAriaHidden getter to handle null activeNode
grid-header-group.component.ts Added optional chaining to ariaHidden getter to handle null activeNode
column-group.spec.ts Added test case to verify the fix prevents TypeError when grid has no active node

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IvanKitanov17 IvanKitanov17 added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Nov 26, 2025
@kacheshmarova kacheshmarova merged commit f96df58 into 20.1.x Nov 26, 2025
12 of 14 checks passed
@kacheshmarova kacheshmarova deleted the bpachilova/ariaHidden-header-groups-fix-16517-20.1.x branch November 26, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grid: multi-column-headers grid version: 20.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.

TypeError: TypeError: Cannot read properties of null (reading 'row')

4 participants