Skip to content

Conversation

@dmlvr
Copy link
Contributor

@dmlvr dmlvr commented Jan 28, 2026

No description provided.

@dmlvr dmlvr self-assigned this Jan 28, 2026
@dmlvr dmlvr added the 26_1 label Jan 28, 2026
@dmlvr dmlvr marked this pull request as ready for review January 28, 2026 14:35
@dmlvr dmlvr requested a review from a team as a code owner January 28, 2026 14:35
Copilot AI review requested due to automatic review settings January 28, 2026 14:35
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 list keyboard-reordering edge case where using Shift+Arrow on boundary items could cause a runtime error, and adds regression tests to cover the behavior.

Changes:

  • Guard ListEdit’s keyboard-based reordering logic against missing destination items so Shift+Arrow on out-of-range indices exits safely without throwing.
  • Add QUnit tests to verify that Shift+ArrowUp on the first item and Shift+ArrowDown on the last item do not throw and keep the item order unchanged.

Reviewed changes

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

File Description
packages/devextreme/js/__internal/ui/list/list.edit.ts Adds a null check for the next item element before computing group boundaries and calling reorderItem, preventing a TypeError when trying to move beyond list bounds.
packages/devextreme/testing/tests/DevExpress.ui.widgets/listParts/editingTests.js Introduces two keyboard navigation tests that reproduce the Shift+ArrowUp/Down boundary scenarios and assert that the items order remains unchanged (regression coverage for T1320189).

Copilot AI review requested due to automatic review settings January 29, 2026 15:56
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

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

Copilot AI review requested due to automatic review settings January 29, 2026 16:50
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

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

@dmlvr dmlvr merged commit 81cd6ab into DevExpress:26_1 Jan 30, 2026
99 of 100 checks passed
dmlvr added a commit to dmlvr/DevExtreme that referenced this pull request Jan 30, 2026
…'get') occurs when using Shift + Up Arrow on the first item (DevExpress#32334)
dmlvr added a commit to dmlvr/DevExtreme that referenced this pull request Jan 30, 2026
…'get') occurs when using Shift + Up Arrow on the first item (DevExpress#32334)
@pharret31 pharret31 changed the title T1320189 - List - TypeError: Cannot read properties of null (reading 'get') occurs when using Shift + Up Arrow on the first item List: fix border cases on dragging first or last items using KBN (T1320189) Jan 30, 2026
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.

2 participants