Apply suggestions from code review
authorMarcel Werk <burntime@woltlab.com>
Tue, 16 May 2023 12:53:31 +0000 (14:53 +0200)
committerGitHub <noreply@github.com>
Tue, 16 May 2023 12:53:31 +0000 (14:53 +0200)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
ts/WoltLabSuite/Core/Ui/Search/Extended.ts

index bb0127940eac164254ae943b0940c120b996edae..c66b8a9c098f787123a8217f5defa336eed7e528 100644 (file)
@@ -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;
     }
   }