From b35c9a180bac3bbfaaf28e7a1d3329f7c634557b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sat, 28 Jul 2018 11:49:25 +0200 Subject: [PATCH] Correct reaction on sorted react buttons See #2508 --- .../install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1