Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afterpaste event doesn't include pasted data #549

Open
romanstetsyk opened this issue Mar 25, 2023 · 1 comment
Open

afterpaste event doesn't include pasted data #549

romanstetsyk opened this issue Mar 25, 2023 · 1 comment

Comments

@romanstetsyk
Copy link
Contributor

Expected behavior and actual behavior.

Expect: afterpaste event to provide a way to access the values pasted.
Actual: afterpaste event doesn't provide the values of the cells, only the indices of the affected cells.
Suggestion:

  1. e.cells contains an array of affected cells. Each element of the array is of the form [rowIndex, columnIndex, boundRowIndex, boundColumnIndex]. I suggest adding a fifth element to the array with the new value of the cell.

    or

  2. Add a new property, rows, containing entire rows affected by the paste. This is similar to how the beforeendedit event includes the e.cell.data property with the data for the entire row.

Steps to reproduce the problem.

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

@romanstetsyk
Copy link
Contributor Author

I'm willing to make a PR. Please let me know if you like any of these approaches or have any suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant