question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onPaste does not fill all selected rows

See original GitHub issue

Currently, I am working on a table with a company that expects almost identical Excel behavior. One missing thing is copying and pasting one row into multiple selected rows. Is this a feature that you intend to add or is this something you might delegate to devs using your library to implement themselves due to some technical complexity/edge cases?

Also if I am not mistaken, onPaste is currently working with onCellEdited, is this something that can be moved to onCellsEdited? That would greatly improve DX

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jassmithcommented, Aug 24, 2022

Implementation proposal:

interface DataEditorProps {
  ...otherCrap,
  onPasteBehavior: undfined | {
    demuxRows: boolean,
    demuxColumns: boolean,
    demuxRanges: boolean,
  }
}
1reaction
jassmithcommented, Aug 24, 2022

onCellsEdited was updated in 5.0.1 to always trigger, you can not implement onCellEdited at all if you like. onCellEdited will always trigger if onCellsEdited triggered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple Cell Selection (not full row)
Multiple Cell Selection (not full row). My users need to select cells rather than entire rows, as they come from an MS Access...
Read more >
HTMLElement: paste event - Web APIs | MDN
The paste event fires when the user initiates a paste action through the browser's user interface.
Read more >
Issues · glideapps/glide-data-grid - GitHub
Glide Data Grid is a no compromise, outrageously react fast data grid with rich rendering, first class accessibility, and full TypeScript support.
Read more >
React Data Grid: Clipboard - AG Grid
Press keys Ctrl + V while focus in on the grid with a single cell selected. The paste will then proceed starting at...
Read more >
Copy/Paste from Excel to a web page - Stack Overflow
You don't lose the delimiters, the cells are separated by tabs ( \t ) and rows by newlines ( \n ) which might...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found