diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-14 22:27:59 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-14 22:27:59 -0400 |
| commit | 0f429c53fc3df62a60be1da398740524545357bc (patch) | |
| tree | 7395315d1377aa0657f6e92f7caf33da0f09b0af /src/client/views/search/SearchBox.tsx | |
| parent | 99344418b2141721c0c4e15fd871ff3586d420fb (diff) | |
Compile errors
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index c02db528a..e0c5d163e 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -213,7 +213,8 @@ export class SearchBox extends React.Component { this._curRequest = undefined; } - resultsScrolled = flow(function* (this: SearchBox, e?: React.UIEvent<HTMLDivElement>) { + @action + resultsScrolled = (e?: React.UIEvent<HTMLDivElement>) => { let scrollY = e ? e.currentTarget.scrollTop : 0; let buffer = 4; let startIndex = Math.floor(Math.max(0, scrollY / 70 - buffer)); @@ -273,7 +274,7 @@ export class SearchBox extends React.Component { this._visibleElements.length = this._results.length; this._isSearch.length = this._results.length; } - }); + } @computed get resFull() { |
