CodePen: https://codepen.io/anon/pen/WPoXzo
HoverCard dismisses as usual
HoverCard remains open
Requested priority: Normal
After some debugging, it appears that it's actually the card is closing because of the mouse leave event from the ExpandingCard or PlainCard rendered by the HoverCard.
I'm not sure expectation here. If the card is marked as sticky, when does it dismiss?
We can create a wrapper function to handle the onLeave callback passed to the card and only execute a dismiss if the sticky prop is false, but then the card will never dismiss.
I think the fix is likely relatively simple once the expected behavior is determined.
One approach could be to only not dismiss the card when the onLeave callback fires if the event is a mouseleave MouseEvent event. Will be opening a PR shortly with this fix. If this fix breaks something else or is invalid for some other reason, please let me know!
:tada:This issue was addressed in #7898, which has now been successfully released as [email protected].:tada:
Handy links:
Most helpful comment
One approach could be to only not dismiss the card when the
onLeavecallback fires if the event is amouseleaveMouseEvent event. Will be opening a PR shortly with this fix. If this fix breaks something else or is invalid for some other reason, please let me know!