aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchBox.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-14 22:27:59 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-14 22:27:59 -0400
commit0f429c53fc3df62a60be1da398740524545357bc (patch)
tree7395315d1377aa0657f6e92f7caf33da0f09b0af /src/client/views/search/SearchBox.tsx
parent99344418b2141721c0c4e15fd871ff3586d420fb (diff)
Compile errors
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
-rw-r--r--src/client/views/search/SearchBox.tsx5
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() {