Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: unselectable cell text #7391

Open
inad9300 opened this issue Nov 5, 2024 · 2 comments
Open

DataTable: unselectable cell text #7391

inad9300 opened this issue Nov 5, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@inad9300
Copy link
Contributor

inad9300 commented Nov 5, 2024

Describe the bug

10.8.3 introduced a bug whereby text within table cells cannot be copied.

I've tracked it down to these changes that made cells draggable even when no drag-related features are enabled, whereas in 10.8.2 cells stayed not draggable: https://github.com/primefaces/primereact/pull/7051/files#diff-760d13999e77f41593a865b0c92c5fc0942d1708ed40657985cd69f5446b9cc4R599.

Reproducer

https://primereact.org/datatable/#basic

System Information

Chrome.

Steps to reproduce the behavior

  1. Try copying text within a cell to the clipboard, e.g. "Bamboo Watch" or whatever.

Expected behavior

No response

@inad9300 inad9300 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 5, 2024
@XdertY
Copy link

XdertY commented Nov 15, 2024

I am experiencing the same thing and it is really annoying.

@v360-bruno-sato
Copy link

v360-bruno-sato commented Nov 22, 2024

I'm having the same issue.
I've found a provisory fix:
Use the prop user-select on the cells that I what to be able to allow copy and I set -webkit-user-drag to none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

3 participants