Skip to content

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

Description

@wjramos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions