Skip to content

[BUG] onHoverStart and onHoverEnd types does not correspond to the actual event #2286

@ziloen

Description

@ziloen

Describe the bug

onHoverStart and onHoverEnd typed as (event: MouseEvent, info: EventInfo): void, but the actual event is PointerEvent, and can not get event.currentTarget

IMPORTANT: Provide a CodeSandbox reproduction of the bug

stackblitz

Steps to reproduce

Steps to reproduce the behavior:

  1. Open stackblitz
  2. Open browser devtools - console
  3. Hover the blue <div />

Expected behavior

The type is the same as the actual event, and event.currentTarget is preserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions