From: Alexander Ebert Date: Mon, 15 Feb 2021 19:05:54 +0000 (+0100) Subject: The mail notification type was unselectable X-Git-Tag: 5.4.0_Alpha_1~268^2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a5cdf0b04b5d3fcfeea2c3cce5d02d2641db700;p=GitHub%2FWoltLab%2FWCF.git The mail notification type was unselectable --- diff --git a/ts/WoltLabSuite/Core/Controller/User/Notification/Settings.ts b/ts/WoltLabSuite/Core/Controller/User/Notification/Settings.ts index adf7d1c9a5..8dd6a3fc84 100644 --- a/ts/WoltLabSuite/Core/Controller/User/Notification/Settings.ts +++ b/ts/WoltLabSuite/Core/Controller/User/Notification/Settings.ts @@ -29,6 +29,7 @@ function stateChange(event: Event): void { function click(event: Event): void { event.preventDefault(); + event.stopPropagation(); const button = event.currentTarget as HTMLAnchorElement; _objectId = ~~button.dataset.objectId!; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js index 39706ece2a..e641c288ae 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js @@ -29,6 +29,7 @@ define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dropdow } function click(event) { event.preventDefault(); + event.stopPropagation(); const button = event.currentTarget; _objectId = ~~button.dataset.objectId; createDropDown();