react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Copy cell (Ctrl+C) then remove the row containing that cell and paste (Ctrl+V) error.

Open emsi-iggy opened this issue 6 years ago • 1 comments

Steps to recreate

  1. Copy cell in the last row (Ctrl + C)
  2. Remove the row containing that cell (right click menu) 2nd step will result in blue'ish rectangle
  3. Paste cell anywhere (Ctrl + V)
  4. Whole app error

Image after step 2 (removed 2 rows from the bottom): image

live demo: https://codesandbox.io/s/rdg-cell-editing-wd1no?file=/src/index.js

My question is: Is it possible to turn off "copy paste" mode when i know that it is on ? Or is it possible to find out that it is on? I would use it in removing row method.

emsi-iggy avatar May 09 '20 14:05 emsi-iggy

This bug is fixed in v7 canary and we recommend upgrading. V7 canary also introduced a new enableCellCopyPaste to control the copy/paste behavior

https://github.com/adazzle/react-data-grid/blob/canary/CHANGELOG.md https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features https://github.com/adazzle/react-data-grid/tree/canary/stories/demos

amanmahajan7 avatar May 11 '20 20:05 amanmahajan7