react-native-web-hooks
react-native-web-hooks copied to clipboard
useHover does not invalidate hover state when underlying element moves postion from under cursor
Scenario: Sliding expandable sidebar with a toggle button
Behavior:
- Button is hovered (background color changes)
- Button is pressed (sidebar collapses)
- Background color change persists because mouseleave was never triggered due to cursor being stationary
Expected: 3. Background color returns to default non-hovered display