primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.97k stars 1.06k forks source link

DataTable: unselectable cell text #7391

Open inad9300 opened 3 weeks ago

inad9300 commented 3 weeks ago

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

XdertY commented 2 weeks ago

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

v360-bruno-sato commented 1 week ago

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