-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Enable copying text to clipboard for tables with cell_selectable=False
#2114
Enable copying text to clipboard for tables with cell_selectable=False
#2114
Conversation
The |
@benedikt-budig thanks for the PR! Looks great, and don't worry about Percy, I'll approve those when we're ready. The one thing we should do is add a test that shows that the bug is fixed. This should be a good starting point (and this test I believe verifies that the normal dash/components/dash-table/tests/selenium/test_basic_copy_paste.py Lines 154 to 174 in 565de53
|
@alexcjohnson thanks a lot for your feedback! In the meantime, I have:
However, there are now some |
@benedikt-budig There was a lock in the tests for the older implementation of long_callbacks that made the tests flaky, I removed the lock and it should be fine now. You can merge with dev and the tests should pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Beautiful - great call adding the selectable
class so we can keep background-color: transparent;
in that case. And nice job on the test!
Will merge once tests pass, let's hope merging dev will fix them 🤞
@alexcjohnson @T4rk1n awesome, thanks for your help and for merging this! 🎉 |
This PR makes sure that for DataTables with
cell_selectable=False
, the text content of a cell can be selected and copied to the clipboard as is normally handled by the browser.It fixes issue #1978; the underlying problem has been open for quite some time (see also plotly/dash-table#822).
Contributor Checklist
optionals
CHANGELOG.md