Skip to content

Safari - Links in Tables require multiple clicks or one long click #3973

Open
@mathieu-lessard

Description

@mathieu-lessard

🐛 Bug Report

When a link is in a table, on Safari it requires two clicks if it's the first link in the cell, and rapid clicking if it's not the first link.

The links seem to function normally if you hold the click down and then release.

🤔 Expected Behavior

Regular clicking of the link opens it. This is behaving correctly in Edge, Chrome, Firefox.

😯 Current Behavior

If it's the first link, the cell first is focused, and then the link is clicked.

If it's the second link, the cell is focused on every click unless you click rapidly enough, then the link opens.

For either link, if you hold the click down and then release, the links function as expected.

💁 Possible Solution

Not sure. Seems focus related.

🔦 Context

For Safari users there is some confusion and mildly annoyance to click twice or differently then normal.

💻 Code Sample

https://codesandbox.io/s/react-spectrum-table-safari-double-click-957o02?file=/src/App.js

🌍 Your Environment

Software Version(s)
react-spectrum 3.20, 3.24.1
Browser Safari - Version 16.1 (17614.2.9.1.13, 17614)
Operating System macOS 12.6.1

🧢 Your Company/Team

N/A

🕷 Tracking Issue (optional)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions