-
Notifications
You must be signed in to change notification settings - Fork 295
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
dgrid error parentNode is null #1416
Comments
If a node has not been inserted into the DOM or is in a fragment that has not been inserted into the DOM, then |
@edhager the error was seen after clicking on the column header of a OnDemandGrid that was using a rest dstore so the DOM has to be rendered. Ideas? |
Setting |
Recently we have upgraded our version of the API to version 1.2.1 and now get this error when clicking on the column header twice in a row when using a REST dstore.
The error comes from line 222 in the OnDemandList.js
if (self._previousScrollPosition && parentNode.offsetHeight) {
// Restore position after a refresh operation w/ keepScrollPosition but only
// if the rows have been inserted into the DOM.
self.scrollTo(self._previousScrollPosition);
delete self._previousScrollPosition;
}
The added check of parentNode.offsetHeight is returning null in some cases. This check was not there is earlier versions and I am not sure why it is there now as it is not used inside the if.
The text was updated successfully, but these errors were encountered: