question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table turns white when scrolling after filtering

See original GitHub issue

I’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

datatable turns white when scrolling after filtering, and return to normal state after scrolling once again.

  • condition
  1. use [scrollBarV]=true option
  2. scroll down a bit (away from the top) <- Important point
  3. filter items of the table to empty <- the bug not occurred if not empty
  4. return to the original items => table has gone to white, and return when scrolling.

Before filtering if the scrollbar is at the top (the state not scrolled), there is no bug.

Expected behavior

the table has to show items normally.

Reproduction of the problem

you can reproduce the bug here http://plnkr.co/edit/YtQgkkJ2sWHXVzk0rUSf

What is the motivation / use case for changing the behavior?

this bug causes confusion to users like there is no item in the table.

Please tell us about your environment:

macOS 10.12.6, npm 5.6.0

  • Table version: 0.8.x

11.1.7 (also 11.2.0)

  • Angular version: 2.0.x

Angular 5.2.0

  • 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 ]

Chrome 65.0.3325.162

  • Language: [all | TypeScript X.X | ES6/7 | ES5] typescript 2.4.1, es5

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:20
  • Comments:6

github_iconTop GitHub Comments

4reactions
diegosch21commented, Jul 23, 2018

I have the same issue: if i scroll the table and then update the rows data, the portion of table i scrolled has no rows.

I need the virtual scroll, so my temporary solution is:

this.datatable.bodyComponent.updateOffsetY(0);
setTimeout(() => {
      // Update logic
},10);

It would be nice if it can be solved without that hack.

0reactions
KingDarBojacommented, Sep 20, 2019

Related to #1449.

Gonna see if there is a possible fix by editing the source code.

Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is Html table row scrolling breaks when scrolling filtered ...
It happens because you are navigating between all rows and some of them are hidden after filtering. You have to iterate through them...
Read more >
After sorting columns width breaks (using scroll) - DataTables
Hi people, i have a project build in C# ASP with jQuery, Boostrap, dataTable (DataTables 1.10.20), I have a HUGE table with many...
Read more >
Guide to scroll anchoring - CSS: Cascading Style Sheets | MDN
How does it work? Scroll anchoring adjusts the scroll position to compensate for the changes outside of the viewport. This means that the...
Read more >
Easy Power Apps Scrollable Screen Using A Vertical Container
In this article I will show the easiest way to make a scrollable ... to make it appear as if the skills are...
Read more >
DT: An R interface to the DataTables library - GitHub Pages
R data objects (matrices or data frames) can be displayed as tables on HTML pages, and DataTables provides filtering, pagination, sorting, and many...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found