react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Fix focus behavior after dropping ListView item

Open reidbarber opened this issue 1 year ago • 0 comments

Todo: Fix tests

This fixes focus behavior after moving one or more items within a list or into another list.

Cases: After dropping an item within a list (reorder), that item should be focused, and visual focus should be shown.

After dropping multiple items within a list (reorder), the item that the drag was initiated from should be focused, and visual focus should be shown.

After dropping an item into a new list, that item should be selected and focused, and visual focus should be shown.

After dropping multiple items into a new list, the item that the drag was initiated from should be focused, and visual focus should be shown.

✅ 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:

🧢 Your Project:

reidbarber avatar Aug 01 '22 22:08 reidbarber