Skip to content

Add option to replace mouse events with pointer events in useHover hook #1865

Answered by atomiks
rtivital asked this question in React
Discussion options

You must be logged in to vote

pointerleave doesn't fire on Safari (and those events have different hover semantics with touch input). Plus, it's still inaccessible via keyboard.

disabled prop should not be used at all if there is a tooltip attached to the button: https://floating-ui.com/docs/react-dom-interactions#disabled-elements

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zoubingwu
Comment options

@zoubingwu
Comment options

@zoubingwu
Comment options

@atomiks
Comment options

Answer selected by rtivital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
React
Labels
None yet
3 participants