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

Fix initial `isFocused` in `useFocusRing` when `autoFocus = true`

Open pvorona opened this issue 6 months ago • 0 comments

Fixes the issue when useFocusRing returns isFocused = false on the first render even when autoFocus = true is passed.

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

pvorona avatar Aug 03 '24 10:08 pvorona