Fixed clicking on mention suggestions
authorAlexander Ebert <ebert@woltlab.com>
Thu, 1 Sep 2016 15:11:34 +0000 (17:11 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 1 Sep 2016 15:11:34 +0000 (17:11 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js

index bd127d3040efdf280169f6a6608e04c6ec804639..d65b67089dda637868f6b08cc21ad6bddb1467f0 100644 (file)
@@ -336,7 +336,7 @@ define(['Ajax', 'Environment', 'Ui/CloseOverlay'], function(Ajax, Environment, U
                                
                                listItem = elCreate('li');
                                link = elCreate('a');
-                               link.addEventListener(WCF_CLICK_EVENT, callbackClick);
+                               link.addEventListener('mousedown', callbackClick);
                                link.className = 'box16';
                                link.innerHTML = '<span>' + user.icon + '</span> <span>' + user.label + '</span>';
                                elData(link, 'user-id', user.objectID);