Skip to content

Dialog popover loses focus when switching tabs in Chrome/FF #4130

@stepgould

Description

@stepgould

🐛 Bug Report

In Chrome, when clicking on another browser tab with https://react-spectrum.adobe.com/react-spectrum/DialogTrigger.html open, dialog closes. This is being used in Unified Shell for the Help Center.

🤔 Expected Behavior

When clicking on another browser tab then returning to the original tab, the dialog should remain open.

😯 Current Behavior

The popover dialog is closed when returning to the original tab, losing any info that was in there.

💁 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

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions