The mail notification type was unselectable
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Feb 2021 19:05:54 +0000 (20:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Feb 2021 19:05:54 +0000 (20:05 +0100)
ts/WoltLabSuite/Core/Controller/User/Notification/Settings.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js

index adf7d1c9a5c062da8b1259efcd12528de2e19511..8dd6a3fc840952c2c599d84d0538b3dcbd14c8bb 100644 (file)
@@ -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!;
index 39706ece2a57a359a364f8ea0e59baa8149b3e74..e641c288ae2aabf28384cf4e1d4f835bc8a74fd7 100644 (file)
@@ -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();