From: Marcel Werk Date: Tue, 16 May 2023 12:53:31 +0000 (+0200) Subject: Apply suggestions from code review X-Git-Tag: 6.0.0_Alpha_1~77^2^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbf2ff82beaecd4fa6920ef267081900d9109dc4;p=GitHub%2FWoltLab%2FWCF.git Apply suggestions from code review Co-authored-by: Alexander Ebert --- 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; } }