adobe / adobe/react-spectrum

allowTextSelectionOnPress isn't working for `usePress`

Open
#6,889 1 comment 2 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

When I use `allowTextSelectionOnPress` inside `onPress`, it does not allow selection.

### 🤔 Expected Behavior?

Text selection should work.

### 😯 Current Behavior

Text selection does not work

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/busy-ioana-c3rf9t?file=%2Fsrc%2FApp.js%3A2%2C15

### Version

3.34.1

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

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

MacOS

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