Skip to content

Commit

Permalink
wc: Fix disabling Search button while query is executed in variant-br…
Browse files Browse the repository at this point in the history
…owser #TASK-6073
  • Loading branch information
jmjuanes committed Apr 22, 2024
1 parent 4dc17db commit 0577bf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webcomponents/variant/variant-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
}

Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 0577bf7

Please sign in to comment.