Skip to content

fix: Tree keyboard drag and drop should skip content nodes#9724

Merged
devongovett merged 1 commit intomainfrom
tree-dnd-fix
Mar 3, 2026
Merged

fix: Tree keyboard drag and drop should skip content nodes#9724
devongovett merged 1 commit intomainfrom
tree-dnd-fix

Conversation

@devongovett
Copy link
Member

Some logic was previously added to skip content nodes in tree keyboard dnd but only when navigating down, not up. This adds it for the up direction as well. Tests did not previously catch this because the mock collection did not have content nodes either. When I added them it went into an infinite loop until I fixed the issue.

Test instructions

Open the RAC Tree drag and drop docs example, expand Documents and Photos, and attempt to keyboard drag Image 1 up above Project. Previously this went into a loop, and now it should work correctly.

@rspbot
Copy link

rspbot commented Mar 3, 2026

@devongovett devongovett added this pull request to the merge queue Mar 3, 2026
Merged via the queue into main with commit 7b9da59 Mar 3, 2026
29 checks passed
@devongovett devongovett deleted the tree-dnd-fix branch March 3, 2026 02:30
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.

4 participants