adobe / adobe/react-spectrum

useHover not affected by Popup

Open
#4,951 5 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the issue here

useHover is not affected by overlays/popups

### 🤔 Expected Behavior?

When a popup is triggered from within an element which has useHover wired to it, isHovered should get set to false once the popup is visible.

### 😯 Current Behavior

isHovered is only set to false when the popup is closed, the element is hovered again and then left again with the mouse

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

https://codesandbox.io/s/naughty-neumann-llqllg?file=/src/App.js

### Version

3.18

### What browsers are you seeing the problem on?

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

linux

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.