plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
419 stars 74 forks source link

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

Closed chriddyp closed 2 years ago

chriddyp commented 3 years ago

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 https://github.com/plotly/dash-table/issues/276#issuecomment-704996434

chriddyp commented 3 years ago

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

copy-paste

redm123 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

b-karl commented 3 years ago

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 commented 2 years ago

Possibly causing or related to https://github.com/plotly/dash-table/issues/936.

redm123 commented 2 years ago

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 commented 1 year ago

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.