From 530631322de9ccefc1448e9b90d45923a4129ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Elfstr=C3=B6m?= Date: Mon, 18 Nov 2024 19:40:22 +0100 Subject: [PATCH] WebUI: Fix bug where you can't select RSS rules Fixes bug caused by #21731. PR #21857. --- src/webui/www/private/views/rssDownloader.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/webui/www/private/views/rssDownloader.html b/src/webui/www/private/views/rssDownloader.html index e87de6172..243915902 100644 --- a/src/webui/www/private/views/rssDownloader.html +++ b/src/webui/www/private/views/rssDownloader.html @@ -422,9 +422,11 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also rssDownloaderRuleContextMenu.addTarget($("rulesTable")); // deselect feed when clicking on empty part of table $("rulesTable").addEventListener("click", (e) => { - rssDownloaderRulesTable.deselectAll(); - rssDownloaderRulesTable.deselectRow(); - showRule(""); + if (e.target.nodeName === "DIV") { + rssDownloaderRulesTable.deselectAll(); + rssDownloaderRulesTable.deselectRow(); + showRule(""); + } }); $("rulesTable").addEventListener("contextmenu", (e) => { if (e.toElement.nodeName === "DIV") {