From fef1090a4e0af467d4d5ad83d00a38f0b5274c7a Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 8 Dec 2023 16:03:45 +0200 Subject: [PATCH] web/user: fix search not updating app (#7825) web/user: fix app not updating so when using two classes in a classMap directive, the update fails (basically saying that each class must be separated), however this error only shows when directly calling requestUpdate and is swallowed somewhere when relying on the default render cycle Signed-off-by: Jens Langhammer --- web/src/user/LibraryApplication/index.ts | 2 +- web/src/user/LibraryPage/ApplicationSearch.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/user/LibraryApplication/index.ts b/web/src/user/LibraryApplication/index.ts index 54a611040..282ce63b2 100644 --- a/web/src/user/LibraryApplication/index.ts +++ b/web/src/user/LibraryApplication/index.ts @@ -96,7 +96,7 @@ export class LibraryApplication extends AKElement { this.application.metaPublisher !== "" || this.application.metaDescription !== ""; - const classes = { "pf-m-selectable pf-m-selected": this.selected }; + const classes = { "pf-m-selectable": this.selected, "pf-m-selected": this.selected }; const styles = this.background ? { background: this.background } : {}; return html`
("search", undefined); @@ -63,7 +65,7 @@ export class LibraryPageApplicationList extends AKElement { shouldSort: true, ignoreFieldNorm: true, useExtendedSearch: true, - threshold: 0.5, + threshold: 0.3, }); } @@ -77,7 +79,6 @@ export class LibraryPageApplicationList extends AKElement { connectedCallback() { super.connectedCallback(); - this.fuse.setCollection(this.apps); if (!this.query) { return; }