Skip to content

Paste Functionality Ignoring the Last Row #4

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

Open
tornadicshark opened this issue Feb 23, 2018 · 1 comment
Open

Paste Functionality Ignoring the Last Row #4

tornadicshark opened this issue Feb 23, 2018 · 1 comment

Comments

@tornadicshark
Copy link

tornadicshark commented Feb 23, 2018

When trying to paste a single row, functionality does not work.

When trying to paste multiple rows, the functionality pastes all rows except the last row.

Copying first 2 rows - https://imgur.com/a/Ec9cN
Result of pasting 2 rows to the rows below - https://imgur.com/xWh7fjU

The rows do output correctly when pasting into Excel. The issues with pasting include from Excel to the App and from the same table within an App.

**Edit: ** Setup is Chrome Browser, Angular UI Grid 3.x, Angular 1.6.x, Jquery (recent npm install), and MacOS.

@Ceteareth
Copy link

Ceteareth commented Apr 26, 2019

Been a while since you posted this, so I presume you figured it out, but it's caused by this on line 140:
for (var k = 0; k < pastedRows.length - 1; k++)

Just remove the -1 and you should be good.

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

2 participants