Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.63k stars 725 forks source link

[Bug Report] Copy Paste Row from Keyboard on Mac Fills Single Cell #507

Open briantsaunders opened 1 year ago

briantsaunders commented 1 year ago

I am opening an issue for

vue-easytable

Issue Type

Bug

Issue Title

Copy Paste Row from Keyboard on Mac Fills Single Cell

library Version

v2.20.1

Vue Type

2.7.10

Browser Type

Firefox 104.0.2

System version

macOS Monterey 12.4

Reproduction url

https://codesandbox.io/s/muddy-fast-5wgz56?file=/Example.vue

Step to reproduce

  1. Right click on row 1 to bring up context menu and select Insert Row Below.

  2. Right click again on row 1 to bring up context menu and select Copy.

  3. Click on row 2 (newly created empty row) to highlight entire row and hit the Command V keyboard combination to Paste copied row.

Contents get copied into the first cell of row 2 instead of in each of their respective cells. If I paste via the browser Menu Edit -> Paste then it works as expected.

What is expected?

I would expect the row that I copied to be copied into the new row exactly as it appears.

What is actually happening?

All the items in row 1 get filled into the first cell of row 2.

Any additional comments? (optional)

Not sure if this is expected behavior and related to using a Mac. Thanks!

zhousc1994 commented 1 year ago

Try using: shift + command + v

shojibur commented 1 year ago

Confirming this does not work when it has :edit-option="editOption" -> without this it works Is there any workaround with it ?

shojibur commented 1 year ago

@huangshuwei do you guys have any plan to fix this bug ?