Skip to content

Conversation

@MonikaKirkova
Copy link
Contributor

Closes #16262

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

@GrblackStar GrblackStar added ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification labels Nov 4, 2025
@ChronosSF ChronosSF requested a review from Copilot November 5, 2025 12:20
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 bug where navigation state was lost when cell editing was cancelled and editMode was asynchronously set to false. The fix ensures that focus is properly restored to the grid body when ending cell edit mode programmatically, allowing keyboard navigation to continue working as expected.

Key Changes:

  • Modified endCellEdit() to accept an optional restoreFocus parameter that restores focus to the grid body when true
  • Updated the cell's editMode setter to pass restoreFocus: true when ending edit mode
  • Added comprehensive test coverage for the async cancellation scenario

Reviewed Changes

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

File Description
projects/igniteui-angular/src/lib/grids/common/crud.service.ts Added restoreFocus parameter to endCellEdit() method to restore focus to grid body when ending edit mode
projects/igniteui-angular/src/lib/grids/grid-public-cell.ts Updated call to endCellEdit() to pass true for restoring focus
projects/igniteui-angular/src/lib/grids/grid/grid-cell-editing.spec.ts Added test case verifying navigation preservation when cell edit is cancelled and editMode is set to false asynchronously

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

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

Labels

grid: cell-editing grid version: 19.2.x ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants