Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Copy-paste on possible when the table is editable #276

Closed
Marc-Andre-Rivet opened this issue Dec 4, 2018 · 4 comments
Closed

Copy-paste on possible when the table is editable #276

Marc-Andre-Rivet opened this issue Dec 4, 2018 · 4 comments
Labels
dash-type-bug Something isn't working as intended regression Worked in a previous version

Comments

@Marc-Andre-Rivet
Copy link
Contributor

As originally mentioned in #75 (comment).

At the moment, copying from browser only seem to work when the table is editable.

As an example, I tried to copy the content of the cell "New Mexico" on the simple table at https://dash.plot.ly/datatable/, and nothing gets copied in the clipboard.

@Marc-Andre-Rivet Marc-Andre-Rivet added dash-type-bug Something isn't working as intended Attribute: Functionality regression Worked in a previous version labels Dec 4, 2018
@andreapiso
Copy link

andreapiso commented Dec 5, 2018

There are issues with editable tables as well but of different nature. It seems the cell can be copied only when "open for editing" . For example, taking as reference the table at https://dash.plot.ly/datatable/interactivity this is what I am seeing:

  • Select the text "Afghanistan" on the first cell and in doing so drag the mouse outside of the cell border to the right. This causes the cell's background to not become red -> Copying and pasting this text will not work.

  • Select the cell "Afghanistan", its background color becomes red. Now select the text "Albania" on the cell below, dragging the mouse outside of the cell. The cell containing "Afghanistan" still has background color, while Albania is white. Copying and pasting the text "Albania" will now produce "Afghanistan"

Chrome 70.0.3538.110 on Windows 10.

@Marc-Andre-Rivet
Copy link
Contributor Author

@andreapiso Thanks for the additional feedback.

Select the text "Afghanistan" on the first cell and in doing so drag the mouse outside of the cell border to the right. This causes the cell's background to not become red -> Copying and pasting this text will not work.

I think this would qualify as another issue -- for a feature improvement this time.

The table does not support dragging operations at the moment but it could be an interesting improvement in terms of usability. At the moment you have to either (1) click the first cell and shift click the last cell of the zone you want to select or (2) select a cell and shift+(arrow keys).

Select the cell "Afghanistan", its background color becomes red. Now select the text "Albania" on the cell below, dragging the mouse outside of the cell. The cell containing "Afghanistan" still has background color, while Albania is white. Copying and pasting the text "Albania" will now produce "Afghanistan"

I think this qualifies as the same scenario as the first one above -- dragging operations don't mean anything to the table so the selection never changed. Copy/paste copies "Afghanistan" as expected.

I will let you create that one if you don't mind :)

@chirayu11
Copy link

We are facing the same issue too. Highlighting text and copying from the DataTable does not work. It only works if the table is editable (editable=True) but we are using non-editable tables.

@bjonen
Copy link

bjonen commented Oct 7, 2020

Copy paste of cell contents is not working for me with dash_table version 4.10.1. Also selecting/copying from the docs seems not to be possible (https://dash.plotly.com/datatable).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended regression Worked in a previous version
Projects
None yet
Development

No branches or pull requests

4 participants