Skip to content

Commit 442f478

Browse files
committed
Fix visual bug with react-virtualized >= 8.6.0
1 parent d0b8fd0 commit 442f478

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/react-sortable-tree.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class ReactSortableTree extends Component {
5858
rows: this.getRows(props.treeData),
5959
searchMatches: [],
6060
searchFocusTreeIndex: null,
61-
scrollToPixel: null,
6261
};
6362

6463
this.toggleChildrenVisibility = this.toggleChildrenVisibility.bind(this);
@@ -315,7 +314,6 @@ class ReactSortableTree extends Component {
315314
rows,
316315
searchMatches,
317316
searchFocusTreeIndex,
318-
scrollToPixel,
319317
} = this.state;
320318

321319
// Get indices for rows that match the search conditions
@@ -343,7 +341,6 @@ class ReactSortableTree extends Component {
343341
scrollToAlignment="start"
344342
className={styles.virtualScrollOverride}
345343
width={width}
346-
scrollTop={scrollToPixel}
347344
onScroll={({ scrollTop }) => { this.scrollTop = scrollTop; }}
348345
height={height}
349346
style={innerStyle}

0 commit comments

Comments
 (0)