Fix error on menu item id search
authorPeter Lohse <hanashi@hanashi.eu>
Tue, 9 Jan 2024 12:23:33 +0000 (13:23 +0100)
committerPeter Lohse <hanashi@hanashi.eu>
Tue, 9 Jan 2024 12:54:46 +0000 (13:54 +0100)
ts/WoltLabSuite/Core/Ui/Page/Search/Handler.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Search/Handler.js

index 30fb6be7c50ecfc6231bac1d4a593a7cf297764c..379447ed16c7df5d3e21924c6e9dbdf6818ba1b2 100644 (file)
@@ -91,11 +91,6 @@ class UiPageSearchHandler implements DialogCallbackObject {
         </div>
       </div>`;
 
-      const link = listItem.querySelector("a")!;
-      link.addEventListener("click", (event) => {
-        event.preventDefault();
-      });
-
       listItem.addEventListener("click", () => {
         this.click(item.objectID);
       });
index abaa0e93c819b0589e6dd0ef892148c8390f6f58..7e1dbe45edb6570ad21260f5fda76f2606265ba2 100644 (file)
@@ -66,10 +66,6 @@ define(["require", "exports", "tslib", "../../../Language", "../../../StringUtil
           </div>
         </div>
       </div>`;
-                const link = listItem.querySelector("a");
-                link.addEventListener("click", (event) => {
-                    event.preventDefault();
-                });
                 listItem.addEventListener("click", () => {
                     this.click(item.objectID);
                 });