adobe / adobe/react-spectrum

React Aria tooltip does not open when the trigger element receives focus after scrolling.

Open
#9,719 6 comments 0 reactions 0 assignees View on GitHub
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

Tooltip does not open when the trigger element is focused after scrolling.

### 🤔 Expected Behavior?

Tooltip should open when the trigger element is focused after scrolling.

### 😯 Current Behavior

Tooltip does not open when the trigger element is focused after scrolling.

### 💁 Possible Solution

adding delay on focus of the trigger element ? .

### 🔦 Context

When the trigger element is out of view, pressing Tab moves focus to it and the page scrolls automatically, but the tooltip does not open in this scenario.

### 🖥️ Steps to Reproduce

Use tab and focus to the button which is on the end of the page .

https://codesandbox.io/p/sandbox/nervous-diffie-forked-gkqc7l

### Version

1.15.1

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

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

Window 11

### 🧢 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.