Skip to content

Commit 09ac587

Browse files
committed
FIXED: stupid mistake in last pull_request, brings back scrollToPosition after changing tab
1 parent 6bfc712 commit 09ac587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FileTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class FileTableClass extends React.Component<IProps, IState> {
169169
// eg. files have been deleted, or selected item has been renamed,
170170
// so that using previous scrollTop would hide the selected item
171171
// if (/*scrollTop !== null && scrollTop > -1*/1) {
172-
// this.tableRef.current.scrollToPosition(this.cache.scrollTop);
172+
this.tableRef.current.scrollToPosition(this.cache.scrollTop);
173173
// }
174174
}
175175

0 commit comments

Comments
 (0)