useHover target is not always "currentTarget" ? #2350
-
Hello, as you can see in the screenshot bellow, the target of useHover is not always the ref element (an anchor) defined in the hook call but is sometimes one of the children (the span). Is it a known bug or do I miss something maybe? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like we're inconsistent about that. Should probably update it, would you mind opening an issue? |
Beta Was this translation helpful? Give feedback.
Looks like we're inconsistent about that. Should probably update it, would you mind opening an issue?
Comparing https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/interactions/src/usePress.ts#L135
to https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/interactions/src/useHover.ts#L112