Skip to content

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

Open
anna-shakhova wants to merge 1 commit into
DevExpress:26_1from
anna-shakhova:26_1__T1329750_focus_cell
Open

GridCore: fix focus anchor when leave 1st cell with Shift+Tab (T1329750)#34107
anna-shakhova wants to merge 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 from e9fb040 to df6d989 Compare June 24, 2026 09:35
@anna-shakhova anna-shakhova force-pushed the 26_1__T1329750_focus_cell branch 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
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