Skip to content

Holding Option/Alt does not allow selection of text inside Link #6614

@levrik

Description

@levrik

Provide a general summary of the issue here

While holding Option/Alt, you can usually select text inside links without triggering them.

🤔 Expected Behavior?

Being able to select text while holding Option/Alt like on native links.
Also the link should neither be followed nor a download should be triggered.

😯 Current Behavior

No selection possible, also the link gets triggered as soon as you lift the mouse button.
When keeping Option/Alt pressed, it triggers a download of the link, otherwise it navigates.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Hold Option while trying to select the text of the RAC Link and then the native link.

https://codesandbox.io/p/sandbox/crazy-hooks-sfs3lr

RAC.Select.Link.mp4

Version

React Aria Components 1.2.1

What browsers are you seeing the problem on?

Microsoft Edge

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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