Skip to content

Tooltip shouldn't appear on restoreFocus from FocusScope #1170

Open
@snowystinger

Description

@snowystinger

🐛 Bug Report

This came from a tweet:
https://twitter.com/jjenzz/status/1317190750120062982
A good one is Tooltip, where refocusing a menu button after the menu closes should not reactivate its tooltip. Here's a comparison between React tree approach and React Aria (use keyboard to focus and space bar to open/close)
https://t.co/ZBgex6HZOx?amp=1

Tooltip also shouldn't block the menu from opening from Spacebar:
I also noticed that the tooltip was preventing space bar from working on my menu button so I had to avoid forwarding onKeyDown events from react-aria

🤔 Expected Behavior

The tooltip should not appear when the menu closes.

😯 Current Behavior

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
react-spectrum
Browser
Operating System

🧢 Your Company/Team

🕷 Tracking Issue (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions