@salesforcedevs/dx-components 0.10.1-alpha.58 → 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
|
@@ -228,27 +228,23 @@ export default class SidebarSearch extends LightningElement {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
private updateHistory(): void {
|
|
231
|
-
const queryParams = new URLSearchParams(window.location.search);
|
|
232
|
-
|
|
233
231
|
if (this.isValueEmpty) {
|
|
234
|
-
console.log(queryParams.toString())
|
|
235
|
-
queryParams.delete('q');
|
|
236
|
-
console.log(queryParams.toString())
|
|
237
232
|
window.history.pushState(
|
|
238
233
|
{},
|
|
239
234
|
"",
|
|
240
|
-
|
|
235
|
+
window.location.hash.replace(`(^|(?<=&))foo(=[^&]*)?(&|$)`, "")
|
|
241
236
|
);
|
|
242
237
|
return;
|
|
243
238
|
}
|
|
244
239
|
|
|
240
|
+
const queryParams = new URLSearchParams(window.location.search);
|
|
245
241
|
if (this.value) {
|
|
246
242
|
queryParams.set("q", this.value);
|
|
247
243
|
}
|
|
248
244
|
window.history.pushState(
|
|
249
245
|
{},
|
|
250
246
|
"",
|
|
251
|
-
`${window.location.hash}
|
|
247
|
+
`${window.location.hash}/?${queryParams.toString()}`
|
|
252
248
|
);
|
|
253
249
|
}
|
|
254
250
|
|