diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-04 12:56:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-04 12:56:17 -0400 |
| commit | 154a57ad6b7aa95f446be58a9ec11ea394ae595f (patch) | |
| tree | cc7d9bfa935bc04983828a100da5a26f7ba2079d /src/client/views/search/SearchBox.tsx | |
| parent | 840d7f00989a33dd0fd9a48a3c2076433340d3ac (diff) | |
| parent | a59bcec29efb9b5ea0ba8ddfb4b9977b904c10b8 (diff) | |
Merge branch 'schema_search' of https://github.com/browngraphicslab/Dash-Web into schema_search
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index c8a1c4e8e..4f9d75705 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -54,7 +54,7 @@ const SearchBoxDocument = makeInterface(documentSchema, searchSchema); @observer export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDocument>(SearchBoxDocument) { - @computed get _searchString() { return this.layoutDoc.searchQuery; } + get _searchString() { return this.layoutDoc.searchQuery; } @computed set _searchString(value) { this.layoutDoc.searchQuery = (value); } @observable private _resultsOpen: boolean = false; @observable _searchbarOpen: boolean = false; @@ -681,7 +681,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc const startIndex = Math.floor(Math.max(0, scrollY / itemHght)); //const endIndex = Math.ceil(Math.min(this._numTotalResults - 1, startIndex + (this._resultsRef.current.getBoundingClientRect().height / itemHght))); const endIndex = 30; - this._endIndex = endIndex === -1 ? 12 : endIndex; + //this._endIndex = endIndex === -1 ? 12 : endIndex; this._endIndex = 30; let headers = new Set<string>(["title", "author", "text", "lastModified"]); if ((this._numTotalResults === 0 || this._results.length === 0) && this._openNoResults) { |
