react-native-web-hooks icon indicating copy to clipboard operation
react-native-web-hooks copied to clipboard

useHover does not invalidate hover state when underlying element moves postion from under cursor

Open wjramos opened this issue 3 years ago • 0 comments

Scenario: Sliding expandable sidebar with a toggle button

Behavior:

  1. Button is hovered (background color changes)
  2. Button is pressed (sidebar collapses)
  3. Background color change persists because mouseleave was never triggered due to cursor being stationary

Expected: 3. Background color returns to default non-hovered display

wjramos avatar Apr 13 '22 19:04 wjramos