Skip to content

Conversation

@Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Oct 14, 2021

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

PR #1063 introduced a regression where the hook useHoverState was not working properly. Thankfully this is only really used in test code, but we should fix it in case any clients use it. I also took the time to add some code comments + a link to the upstream Facebook issue of why we need to route onHoverIn & onHover out to onMouseEnter & onMouseLeave

Verification

Pressable Test works again

Screen.Recording.2021-10-14.at.5.17.16.PM.mov

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@Saadnajmi Saadnajmi changed the title Fix regression in useFocusState Fix regression in useHoverState Oct 14, 2021
@Saadnajmi Saadnajmi merged commit 5c3b06e into microsoft:master Oct 14, 2021
@Saadnajmi Saadnajmi deleted the another-hover-fix branch October 15, 2021 03:12
@Saadnajmi Saadnajmi mentioned this pull request Oct 15, 2021
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants