Skip to content

GridCore: fix focus anchor when leave 1st cell with Shift+Tab (T1329750)#34107

Merged
anna-shakhova merged 1 commit into
DevExpress:26_1from
anna-shakhova:26_1__T1329750_focus_cell
Jun 25, 2026
Merged

GridCore: fix focus anchor when leave 1st cell with Shift+Tab (T1329750)#34107
anna-shakhova merged 1 commit into
DevExpress:26_1from
anna-shakhova:26_1__T1329750_focus_cell

Conversation

@anna-shakhova

Copy link
Copy Markdown
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this Jun 24, 2026
Copilot AI review requested due to automatic review settings June 24, 2026 08:38
@anna-shakhova anna-shakhova requested a review from a team as a code owner June 24, 2026 08:38

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.

Pull request overview

Fixes a DataGrid keyboard-navigation edge case in GridCore where native Shift+Tab from the first editable cell could lose a stable focus “anchor”, leading to incorrect focus transition (e.g., not landing on the last header cell).

Changes:

  • Ensure the focused data cell is explicitly focused (with preventScroll) before disposing the cell editor during native Tab-out handling in cell/batch edit modes.
  • Add a TestCafe E2E regression test covering Shift+Tab from the first editable cell → last header cell behavior for Cell/Batch editing modes (T1329750).

Reviewed changes

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

File Description
packages/devextreme/js/__internal/grids/grid_core/keyboard_navigation/m_keyboard_navigation.ts Focus the cell before closing/disposal of the editor during native Tab-out to stabilize the browser’s Shift+Tab anchor.
e2e/testcafe-devextreme/tests/dataGrid/common/keyboardNavigation/keyboardNavigation.functional.ts Adds an E2E regression test validating Shift+Tab focus moves from the first editable cell to the last header cell in Cell/Batch modes.

@anna-shakhova anna-shakhova force-pushed the 26_1__T1329750_focus_cell branch 2 times, most recently from df6d989 to 929212f Compare June 24, 2026 09:55
Copilot AI review requested due to automatic review settings June 24, 2026 09:55
@anna-shakhova anna-shakhova changed the title GridCore: fix focus anchor when leave 1st cell with Shift+Tab GridCore: fix focus anchor when leave 1st cell with Shift+Tab (T1329750) Jun 24, 2026

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.

Pull request overview

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

@Alyar666 Alyar666 self-requested a review June 24, 2026 13:27
@anna-shakhova anna-shakhova force-pushed the 26_1__T1329750_focus_cell branch from 929212f to 7d1ad69 Compare June 25, 2026 08:00
@anna-shakhova anna-shakhova added this pull request to the merge queue Jun 25, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 25, 2026
@anna-shakhova anna-shakhova added this pull request to the merge queue Jun 25, 2026
Merged via the queue into DevExpress:26_1 with commit 73ca7a3 Jun 25, 2026
101 checks passed
@anna-shakhova anna-shakhova deleted the 26_1__T1329750_focus_cell branch June 25, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants