@salesforcedevs/dx-components 0.10.1-alpha.109 → 0.10.1-alpha.110

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.10.1-alpha.109",
3
+ "version": "0.10.1-alpha.110",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -116,7 +116,7 @@ export default class SidebarSearch extends LightningElement {
116
116
  return;
117
117
  }
118
118
  const state = JSON.parse(stringified);
119
- console.log({ state }, state?.query?.q === this.value, this.value);
119
+ console.log({ state }, state?.search?.queryExecuted === this.value, this.value);
120
120
  if (state?.query?.q === this.value) {
121
121
  this.preloadedState = state;
122
122
  }
@@ -154,7 +154,7 @@ export default class SidebarSearch extends LightningElement {
154
154
 
155
155
  this.resultList?.subscribe(this.onResultListChange);
156
156
 
157
- if (this.preloadedState) {
157
+ if (this.preloadedState) { // remove this block
158
158
  console.log("updating search box", this.value);
159
159
  this.searchBox.updateText(this.value || "");
160
160
  }
@@ -313,9 +313,10 @@ export default class SidebarSearch extends LightningElement {
313
313
 
314
314
  private submitSearch = debounce(() => {
315
315
  if (this.searchBox) {
316
- this.searchBox.updateText(this.value || "");
317
316
  UserRecentSearches.add(this.value);
318
317
  this.updateRecentSearches();
318
+
319
+ this.searchBox.updateText(this.value || "");
319
320
  this.searchBox.submit();
320
321
  }
321
322
  }, SEARCH_DEBOUNCE_DELAY);