From d50e9d933e912c38e2d8b7528504bd5ea6e7f8cc Mon Sep 17 00:00:00 2001 From: Josemi Date: Wed, 15 Jan 2025 14:27:18 +0100 Subject: [PATCH] wc: Allow to apply a previously executed query from history #TASK-7216 #TASK-7100 --- .../variant/variant-browser-horizontal-filter.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/webcomponents/variant/variant-browser-horizontal-filter.js b/src/webcomponents/variant/variant-browser-horizontal-filter.js index 2795821a9..34e8473d8 100644 --- a/src/webcomponents/variant/variant-browser-horizontal-filter.js +++ b/src/webcomponents/variant/variant-browser-horizontal-filter.js @@ -374,7 +374,11 @@ export default class VariantBrowserHorizontalFilter extends LitElement { this.requestUpdate(); } - onApplyQuery(query) { + onApplyQuery(event, query) { + // event.preventDefault(); + this.preparedQuery = UtilsNew.objectClone(query || {}); + this.notifySearch(this.preparedQuery); + this.updateHistory(); } onSearch() { @@ -891,7 +895,7 @@ export default class VariantBrowserHorizontalFilter extends LitElement { .join("
"); return html` - +