TonyGermaneri / canvas-datagrid

Canvas based data grid web component. Capable of displaying millions of contiguous hierarchical rows and columns without paging or loading, on a single canvas element.
BSD 3-Clause "New" or "Revised" License
1.42k stars 184 forks source link

Performing a copy (Ctrl/Cmd + C) on an active cell throws an error #566

Open adrianchan12 opened 1 year ago

adrianchan12 commented 1 year ago

Expected behavior and actual behavior.

Should not throw an error

Steps to reproduce the problem.

Performing a copy (ctrl/cmd + c) on an active cell throws an error:

Uncaught TypeError: Cannot read properties of undefined (reading 'type') at util.js:1068:1 at index.js:547:1 at e.copy (index.js:2278:1)

It works as expected if the cell is "selected" and not just "active".

Specifications like the version of the project, operating system, or hardware.

Mac OS Chrome