From fbf2ff82beaecd4fa6920ef267081900d9109dc4 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 16 May 2023 14:53:31 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alexander Ebert --- ts/WoltLabSuite/Core/Ui/Search/Extended.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Search/Extended.ts b/ts/WoltLabSuite/Core/Ui/Search/Extended.ts index bb0127940e..c66b8a9c09 100644 --- a/ts/WoltLabSuite/Core/Ui/Search/Extended.ts +++ b/ts/WoltLabSuite/Core/Ui/Search/Extended.ts @@ -136,9 +136,9 @@ export class UiSearchExtended { this.activePage = pageNo!; this.showSearchResults(template!); } else if (Object.keys(this.getFormData()).length > 4) { - // If no results are found and advanced filters are active, - // make sure that the corresponding area is shown, - this.filtersContainer.setAttribute("open", ""); + // Show the advanced filters when there are no results + // but advanced filters are applied. + this.filtersContainer.open = true; } } -- 2.20.1