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

error pasting into grid #549

Closed
matt-softlogic opened this issue Apr 4, 2013 · 5 comments
Closed

error pasting into grid #549

matt-softlogic opened this issue Apr 4, 2013 · 5 comments
Labels

Comments

@matt-softlogic
Copy link

Using release 0.8.1.7

Hitting this error 'null' is null or not an object jquery.handsontable.full.js, line 1284 character 13 in the prepare function when I paste a block of data into the grid which goes outside the viewable area on the page.

Specifically the following code has a null pointer to the TD object.

if (priv.settings.asyncRendering) {
   self.registerTimeout('prepareFrame', function () {
   var TD = self.view.getCellAtCoords(priv.selStart.coords());
   if (Handsontable.helper.isDescendant(self.rootElement[0], document.activeElement)) {
       //we don't want to steal focus if it is outside HT (issue #408)
       TD.focus();
    }
    ...
}

@itanex

@warpech
Copy link
Member

warpech commented Apr 11, 2013

Thanks for reporting, we are working to fix this!

Simmilar issue: when you select a cell, scroll down until it goes out of viewport, then press ENTER - it throws an exception

@matt-softlogic
Copy link
Author

Awesome, thanks, I'll be glad to help test the fix if you need. For now I just made a small code change in the lib to swallow the exception so we can move forward with this project, but it would be nice to get back on the mainline.

@warpech
Copy link
Member

warpech commented Apr 17, 2013

This is the connected with #506

@warpech
Copy link
Member

warpech commented Apr 19, 2013

This is now fixed in 0.8.20. Can you please retest? Thanks a lot!

@warpech warpech closed this as completed Apr 19, 2013
@matt-softlogic
Copy link
Author

This resolves it, thanks!!

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

No branches or pull requests

2 participants