Open LaurentDario opened 2 months ago
This looks to be the same issue that was brought up in this following discussion: https://github.com/adobe/react-spectrum/discussions/4743. I must have forgotten to convert that discussion to an actual issue so thank you for reporting this. The comment I made here is still relevant, we will need to figure out a way to determine if a event that crosses portal boundaries is desired or not.
Provide a general summary of the issue here
When working with React Aria Table, we had the need to add tooltips in some of our cells to provide more informations (about the user details for example). This causes, in our design, to have Tooltip overlapping rows (so the tooltip of row 2 would overlap row 1 when opened). This means that the user could leave a Row without hovering it (Leaving row 2 while hovering the tooltip that is technically above Row 1) When this happens, the hover state of the row (using
href
) is not removed until a second pass of the mouse is done on it.๐ค Expected Behavior?
Leaving a Tooltip that is in a row should trigger the HoverEnd event of that row.
๐ฏ Current Behavior
Leaving a Tooltip that is in a row does not trigger the HoverEnd event of that row.
๐ Possible Solution
I tried using
useHover
anduseFocus
to help force it, but these hooks do not work onRow
. For now we are forcing the Hover state to be closed when the Tooltip is closed, but that's not an ideal solution as it only works on custom properties that we use. I believe the problem comes from the Mouse events not properly triggering, or aref
missing between elements.๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
To reproduce you just need a table with a Tooltip in one of the Cells and an hover state (in our case, done with the use of
href
)Version
react-aria-components 1.3.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Windows 11 Enterprise
๐งข Your Company/Team
Workleap
๐ท Tracking Issue
No response