@salesforcedevs/dx-components 0.10.1-alpha.60 → 0.10.1-alpha.61

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.60",
3
+ "version": "0.10.1-alpha.61",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -228,23 +228,16 @@ export default class SidebarSearch extends LightningElement {
228
228
  }
229
229
 
230
230
  private updateHistory(): void {
231
- console.log(window.location);
232
- const url = new URL(window.location.href);
233
-
234
- const queryParams = new URLSearchParams(window.location.hash);
235
-
236
231
  if (this.isValueEmpty) {
237
- console.log(queryParams.toString())
238
- queryParams.delete('q');
239
- console.log(queryParams.toString())
240
232
  window.history.pushState(
241
233
  {},
242
234
  "",
243
- queryParams.toString()
235
+ window.location.hash.replace(`(^|(?<=&))foo(=[^&]*)?(&|$)`, "")
244
236
  );
245
237
  return;
246
238
  }
247
239
 
240
+ const queryParams = new URLSearchParams(window.location.search);
248
241
  if (this.value) {
249
242
  queryParams.set("q", this.value);
250
243
  }