@salesforcedevs/dx-components 0.10.1-alpha.92 → 0.10.1-alpha.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -60,6 +60,7 @@ export default class Sidebar extends LightningElement {
|
|
|
60
60
|
private searchResults: Result[] = [];
|
|
61
61
|
private scrollToSelectedSearchResult: boolean = false;
|
|
62
62
|
private selectedSearchResultIndex: number = -1;
|
|
63
|
+
private requestedFetchMoreResults: boolean = false;
|
|
63
64
|
|
|
64
65
|
private get areResultsEmpty(): boolean {
|
|
65
66
|
return (
|
|
@@ -179,6 +180,7 @@ export default class Sidebar extends LightningElement {
|
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
private onSearchChange(e: CustomEvent) {
|
|
183
|
+
this.requestedFetchMoreResults = false;
|
|
182
184
|
this.searchResults = e.detail.results;
|
|
183
185
|
this.searchValue = e.detail.value;
|
|
184
186
|
}
|
|
@@ -199,7 +201,8 @@ export default class Sidebar extends LightningElement {
|
|
|
199
201
|
|
|
200
202
|
const search = this.template.querySelector("dx-sidebar-search");
|
|
201
203
|
|
|
202
|
-
if (this.isNearBottomOfSearchResults && search) {
|
|
204
|
+
if (this.isNearBottomOfSearchResults && search && !this.requestedFetchMoreResults) {
|
|
205
|
+
this.requestedFetchMoreResults = true;
|
|
203
206
|
search.fetchMoreResults();
|
|
204
207
|
}
|
|
205
208
|
}
|