Skip to content

fix: correctly update focus to the first inserted item after a drop in Tree#9751

Draft
chirokas wants to merge 1 commit intoadobe:mainfrom
chirokas:tree-focus-after-drop
Draft

fix: correctly update focus to the first inserted item after a drop in Tree#9751
chirokas wants to merge 1 commit intoadobe:mainfrom
chirokas:tree-focus-after-drop

Conversation

@chirokas
Copy link
Contributor

@chirokas chirokas commented Mar 6, 2026

Closes

We need to add some logic in updateFocusAfterDrop to handle content nodes.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Open the RAC TreeWithDragAndDrop story, drag Projects to the second tree, and attempt to keyboard drag Projects again to the second tree. Previously this caused a focus error, and now it should work correctly.

🧢 Your Project:

@github-actions github-actions bot added the RAC label Mar 6, 2026
@chirokas chirokas force-pushed the tree-focus-after-drop branch from e8c3052 to fe93cbe Compare March 6, 2026 14:30
@chirokas chirokas force-pushed the tree-focus-after-drop branch from fe93cbe to db03626 Compare March 6, 2026 14:43
@chirokas chirokas marked this pull request as ready for review March 6, 2026 14:52
@chirokas chirokas marked this pull request as draft March 7, 2026 06:46
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.

1 participant