WebUI: do not follow anchor URL

Fix up 5afeecbf18.
PR #21283.
This commit is contained in:
Chocobo1 2024-09-06 15:31:26 +08:00 committed by GitHub
parent f681e954c7
commit 0e63b83aed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -473,6 +473,7 @@ window.qBittorrent.ContextMenu ??= (() => {
anchor.href = `#Category/${categoryName}`;
anchor.textContent = categoryName;
anchor.addEventListener("click", (event) => {
event.preventDefault();
torrentSetCategoryFN(categoryHash);
});