Skip to content

Commit

Permalink
Fix #2987: Datascroller do not reset first on lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 8, 2022
1 parent 6b323ac commit 52812d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/lib/datascroller/DataScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export const DataScroller = React.memo(
if (props.value) {
value.current = props.value;

first.current = 0;
if (!props.lazy) {
first.current = 0;
}

dataToRender.current = [];
handleDataChange();
}
Expand Down

0 comments on commit 52812d8

Please sign in to comment.