Scrolling after row selection causes error in DataTableBodyComponent
See original GitHub issueI’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior ScrollbarV enabled Pagination enabled Table selection enabled When selecting a row and scrolling away from it you get the following error : DataTableBodyComponent.html:22 ERROR TypeError: Cannot read property ‘-1’ of null at Object.eval [as updateDirectives] (DataTableBodyComponent.html:30) at Object.debugUpdateDirectives [as updateDirectives] (core.js:14640) at checkAndUpdateView (core.js:13787) at callViewAction (core.js:14138) at execEmbeddedViewsAction (core.js:14096) at checkAndUpdateView (core.js:13788) at callViewAction (core.js:14138) at execEmbeddedViewsAction (core.js:14096) at checkAndUpdateView (core.js:13788) at callWithDebugContext (core.js:15041)
Also I noticed that in some cases I get the following error but I don’t know the steps to reproduce : ERROR TypeError: Cannot read property ‘destroyed’ of null
Expected behavior Scrolling should work when a table row is selected
Reproduction of the problem
What is the motivation / use case for changing the behavior? Component shouldn’t have a bug
Please tell us about your environment: Windows 10, using npm package manager
-
Table version: 11.1.7 I am using the latest NGX datatable version
-
Angular version: 5.2.0 I am using the latest Angular version
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Tested in Chrome Version 63.0.3239.132 (Official Build) (32-bit)
-
Language: [all | TypeScript X.X | ES6/7 | ES5] TypeScript 2.4.2
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:13
Top GitHub Comments
I have the same problem. It can be reproduced in ngx datatable demo, though I can only reproduce it on Chrome (macOS), steps:
This bug can be reproduced regardless of whether table is selectable or not.
Hello I am facing a similar problem the data in the table disappears and in the console I get the same error ERROR TypeError: Cannot read property ‘destroyed’ of null Did anyone find a solution? I have vertical scroll enabled too