Commit 32ce6b1
fix(data-grid): exclude non-navigable columns from copy operation
When copying cells after selecting rows via checkbox, the copy operation was including the "select" column (and other non-navigable columns) in the TSV output. This caused an empty leading column in the clipboard data, which then shifted all pasted values by one column when pasting.
The fix:
1. Skips non-navigable columns (select, actions) during iteration in serializeCellsToTsv
2. Builds a navigableCells array as we iterate (more efficient than filtering afterward)
3. Returns navigableCells for accurate cell counts in toast messages and cutCells state
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent a7c4e8d commit 32ce6b1
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
563 | 564 | | |
564 | 565 | | |
565 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
566 | 575 | | |
567 | 576 | | |
568 | 577 | | |
| |||
598 | 607 | | |
599 | 608 | | |
600 | 609 | | |
601 | | - | |
| 610 | + | |
602 | 611 | | |
603 | 612 | | |
604 | 613 | | |
| |||
621 | 630 | | |
622 | 631 | | |
623 | 632 | | |
624 | | - | |
| 633 | + | |
625 | 634 | | |
626 | 635 | | |
627 | 636 | | |
| |||
0 commit comments