Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Horizontal scrolling in igx-grid is broken (issue #1)
posted

We have uncovered a fairly serious bug in horizontal scrolling of igx-grid that will break the rendering of the grid. The only way to recover from this issue is to reload the page.

Here are the steps to reproduce:


In developer tools you will see uncaught errors similar to the following:

ERROR TypeError: node is null
    scrollFocus zfowahrun-qroe--4200--ef0c375a.local-corp.webcontainer.io/vendor.js:112763
    moveApplyScrollPrev zfowahrun-qroe--4200--ef0c375a.local-corp.webcontainer.io/vendor.js:112719
    fixedUpdateAllElements zfowahrun-qroe--4200--ef0c375a.local-corp.webcontainer.io/vendor.js:112682

If you don't see the errors, you may need to scroll the grid back to the left or play around with resizing the window. Eventually you will see them.

Back in the grid, if you start to scroll around you will see that the cells are no longer rendered correctly:

The cause of the problem is that IgxGridForOfDirective.moveApplyScrollPrev is calling scrollFocus with a null value when it is attempting to process a comment node.