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

Copy paste of cell contents is not working for me with dash_table version 4.10.1 #837

Closed
chriddyp opened this issue Oct 7, 2020 · 8 comments · Fixed by plotly/dash#1789
Labels

Comments

@chriddyp
Copy link
Member

chriddyp 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).

Originally posted by @bjonen in #276 (comment)

@chriddyp chriddyp added the bug label Oct 7, 2020
@chriddyp
Copy link
Member Author

chriddyp commented Oct 7, 2020

Thanks for reporting @bjonen! Indeed - cmd-c doesn't seem to work for me on the table in the docs.

copy-paste

@redm123
Copy link

redm123 commented Oct 12, 2020

Same here.

Could it be that it (at least partly) depends on the type of fields? When I select a text cell (State column) it fails, when I select any of the other columns it works...

What I also noticed: It works when you click the failing cell a 2nd time... Also with your multi cell selections.

So I click in the table and a cell gets selected. I hit cmd-c, I only hear the error sound from the system and nothing is copied.
I click the selected cell again. I hit cmd-c again and it copies.
Same for multi cell selections. Click some cell in the selection again and copy succeeds.

@redm123
Copy link

redm123 commented Mar 8, 2021

Is there any update regarding this? It's a pretty annoying bug. Especially for our users, that don't know about the extra click workaround, for them copy essentially does not work.

@benedikt-budig
Copy link

For non-editable columns, it seems that cell contents are neither selectable nor can they be copied. Is that intended behavior?

@b-karl
Copy link

b-karl commented Sep 6, 2021

Just a note on this, given that the table is editable, all cells are selectable and all individual columns are set to whatever editable value they should have (explicitly) this does not seem to be an issue in Firefox, but both Chrome and Edge require an additional select/click inside the selected cells to allow Ctrl-C to work on the selected cells.

@HammadTheOne
Copy link
Contributor

Possibly causing or related to #936.

@redm123
Copy link

redm123 commented Oct 11, 2021

Oh cool!

Something related I just noticed, small but annoying: when copying from a cell apparently always a terminating newline is appended, which has to be cleaned up after pasting. Maybe you can check and fix that while you are at it?

@HWiese1980
Copy link

Oh cool!

Something related I just noticed, small but annoying: when copying from a cell apparently always a terminating newline is appended, which has to be cleaned up after pasting. Maybe you can check and fix that while you are at it?

This has not been fixed yet, has it? Is there a flag? Something? I find this behavior disturbing and still encounter it one and a half years later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
7 participants