Skip to content

Commit f90ce66

Browse files
committed
Fix: don't reset scroll position when table is redrawn with "full-hold"
1 parent 7dc5c7a commit f90ce66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/dataTables.scroller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ $.extend( Scroller.prototype, {
871871
this.s.skip = true;
872872

873873
// If paging is reset
874-
if ( (this.s.dt.bSorted || this.s.dt.bFiltered) && displayStart === 0 ) {
874+
if ( (this.s.dt.bSorted || this.s.dt.bFiltered) && displayStart === 0 && !this.s.dt._drawHold ) {
875875
this.s.topRowFloat = 0;
876876
}
877877

0 commit comments

Comments
 (0)