Skip to content

Fix regression in useHoverState #1068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 14, 2021

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