From 0577bf775d84def1020553d9d2a9db7c2b2a8d0d Mon Sep 17 00:00:00 2001 From: Josemi Date: Mon, 22 Apr 2024 11:11:35 +0200 Subject: [PATCH] wc: Fix disabling Search button while query is executed in variant-browser #TASK-6073 --- src/webcomponents/variant/variant-browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webcomponents/variant/variant-browser.js b/src/webcomponents/variant/variant-browser.js index 68d66127f..f49f42a38 100644 --- a/src/webcomponents/variant/variant-browser.js +++ b/src/webcomponents/variant/variant-browser.js @@ -194,6 +194,7 @@ export default class VariantBrowser extends LitElement { async onRun() { this.executedQuery = {...this.preparedQuery}; + this.searchActive = false; this.notifySearch(this.preparedQuery); this.facetQueryBuilder(); @@ -219,6 +220,7 @@ export default class VariantBrowser extends LitElement { onVariantFilterSearch(e) { this.preparedQuery = e.detail.query; this.executedQuery = e.detail.query; + this.searchActive = false; this.requestUpdate(); } @@ -231,6 +233,7 @@ export default class VariantBrowser extends LitElement { VariantUtils.validateQuery(e.detail); this.preparedQuery = {...e.detail}; this.executedQuery = {...e.detail}; + this.searchActive = false; this.notifySearch(this.preparedQuery); this.facetQueryBuilder(); this.requestUpdate(); @@ -239,6 +242,7 @@ export default class VariantBrowser extends LitElement { onActiveFilterClear() { this.preparedQuery = {}; this.executedQuery = {}; + this.searchActive = false; this.notifySearch(this.preparedQuery); this.facetQueryBuilder(); this.requestUpdate();