Skip to content

Commit 7ba2d16

Browse files
authored
FDT-102 fixes (schrodinger#103)
1 parent 875fb9b commit 7ba2d16

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/ScrollToExample.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ScrollToExample extends React.Component {
3131
_onFilterChange(e) {
3232
if (!e.target.value) {
3333
this.setState({
34+
currentIndex: 0,
3435
matchedRows: [],
3536
});
3637
}
@@ -46,6 +47,7 @@ class ScrollToExample extends React.Component {
4647
}
4748

4849
this.setState({
50+
currentIndex: 0,
4951
matchedRows: filteredIndexes,
5052
});
5153
}

site/Constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ exports.ExamplePages = {
5656
},
5757
SCROLL_TO_EXAMPLE: {
5858
location: 'example-scroll-to.html',
59-
fileName: 'ScollToExample.js',
59+
fileName: 'ScrollToExample.js',
6060
title: 'Jump to row',
6161
description: 'A table example that will list search matches and jump to specified row',
6262
},

0 commit comments

Comments
 (0)