-
Disabled buttons do not support
Sandbox that illustrates both issues – https://codesandbox.io/s/divine-snow-48v1gl?file=/src/App.tsx To solve these issues, I propose to add an option to useHover({
eventsType: 'pointer',
// ... other options
}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
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