Skip to content

fix(hierarchical-grid): hide child row editing overlay on scroll - master#17302

Open
georgianastasov wants to merge 2 commits into
masterfrom
ganastasov/fix-17275-master
Open

fix(hierarchical-grid): hide child row editing overlay on scroll - master#17302
georgianastasov wants to merge 2 commits into
masterfrom
ganastasov/fix-17275-master

Conversation

@georgianastasov
Copy link
Copy Markdown
Contributor

Closes #17275

Description

Fixes an issue in the Hierarchical Grid where the row editing overlay of a child grid could remain visible outside the grid boundaries while scrolling.

The fix updates the child row editing overlay state when scrolling occurs from both relevant scroll surfaces:

  • The parent grid vertical scroll
  • The child record template container scroll

When a child grid row currently in edit mode scrolls out of view, its row editing overlay is hidden. When the row scrolls back into view, the overlay is shown again and repositioned correctly.

Motivation / Context

When row editing is started inside a child grid and the user scrolls the parent hierarchical grid, the editing overlay could be pushed outside the visible grid area instead of being hidden together with the child grid.

This caused a visual inconsistency where the overlay appeared detached from the edited row.

The fix ensures that child grid row editing overlays follow the same visibility behavior as the base grid row editing overlay during scroll.

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:

  • Hierarchical Grid
  • Row Editing
  • Overlay positioning / visibility on scroll

How Has This Been Tested?

Added unit tests for Hierarchical Grid child row editing overlay behavior during scroll.

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version: 22.0.x
  • Browser(s): all
  • OS: all

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

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 Hierarchical Grid child row-editing overlay visibility while scrolling, so the overlay doesn’t remain visible outside the grid’s visible area (issue #17275).

Changes:

  • Update the Hierarchical Grid scroll handling to re-evaluate child grids’ row-editing overlay visibility during scroll.
  • Add a new unit test covering the parent vertical scroll scenario for hiding/showing a child row-editing overlay.

Reviewed changes

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

File Description
projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts Adds scroll-time logic to hide/show/reposition child row-edit overlays when the edited row moves in/out of view.
projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.spec.ts Adds a unit test validating overlay hide/show behavior when parent scrolling moves an edited child row out of view.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Row edit overlay flies outside the grid when scrolling

2 participants