From: Joshua Rüsweg Date: Sat, 28 Jul 2018 09:49:25 +0000 (+0200) Subject: Correct reaction on sorted react buttons X-Git-Tag: 5.2.0_Alpha_1~364^2~101^2~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b35c9a180bac3bbfaaf28e7a1d3329f7c634557b;p=GitHub%2FWoltLab%2FWCF.git Correct reaction on sorted react buttons See #2508 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js index e3bc33cccd..fcf8390a37 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js @@ -201,7 +201,7 @@ define( reactionTypeItem.appendChild(reactionTypeItemSpan); - reactionTypeItem.addEventListener(WCF_CLICK_EVENT, this._react.bind(this, key)); + reactionTypeItem.addEventListener(WCF_CLICK_EVENT, this._react.bind(this, reactionType.reactionTypeID)); popoverContentHTML.appendChild(reactionTypeItem); }