Skip to content

TreeView: fix KBN navigation (expand/collapse) on disabled nodes#32683

Merged
pharret31 merged 3 commits intoDevExpress:26_1from
pharret31:26_1_3245-treeview-kbn-issue-rebased
Feb 25, 2026
Merged

TreeView: fix KBN navigation (expand/collapse) on disabled nodes#32683
pharret31 merged 3 commits intoDevExpress:26_1from
pharret31:26_1_3245-treeview-kbn-issue-rebased

Conversation

@pharret31
Copy link
Contributor

No description provided.

@pharret31 pharret31 self-assigned this Feb 24, 2026
@pharret31 pharret31 marked this pull request as ready for review February 24, 2026 11:04
@pharret31 pharret31 requested a review from a team as a code owner February 24, 2026 11:04
Copilot AI review requested due to automatic review settings February 24, 2026 11:04
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

Fixes TreeView keyboard navigation so disabled nodes can be expanded/collapsed via Left/Right arrows, aligning behavior with expected KBN interactions in the widget.

Changes:

  • Adjust TreeViewBase focus movement logic to no longer skip disabled nodes when expanding/collapsing via keyboard.
  • Add QUnit coverage to verify expand/collapse and related events (onItemExpanded/onItemCollapsed) work for disabled nodes.
  • Update an existing disabled-parent focus regression test to use Left/Right navigation.

Reviewed changes

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

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets/treeViewParts/keyboardNavigation.js Adds/updates keyboard-navigation tests covering disabled-node expand/collapse and event firing.
packages/devextreme/js/__internal/ui/tree_view/tree_view.base.ts Removes “skip disabled nodes” helpers and updates Left/Right focus/expand/collapse behavior accordingly.

@pharret31 pharret31 closed this Feb 24, 2026
@pharret31 pharret31 reopened this Feb 24, 2026
@pharret31 pharret31 closed this Feb 25, 2026
@pharret31 pharret31 reopened this Feb 25, 2026
@pharret31 pharret31 merged commit f5583cf into DevExpress:26_1 Feb 25, 2026
343 of 367 checks passed
@pharret31 pharret31 deleted the 26_1_3245-treeview-kbn-issue-rebased branch February 25, 2026 10:15
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.

3 participants