From: Alexander Ebert Date: Wed, 4 Jan 2017 10:28:51 +0000 (+0100) Subject: Fixed weird message selection in Firefox X-Git-Tag: 3.0.0~62 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aca26d85ba778698eb65090581da45c1b950b170;p=GitHub%2FWoltLab%2FWCF.git Fixed weird message selection in Firefox --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js index 7a9c842aae..c397df8043 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js @@ -60,6 +60,9 @@ define(['List', 'Dom/ChangeListener'], function(List, DomChangeListener) { message.classList.remove('ignoredUserMessage'); message.removeEventListener(WCF_CLICK_EVENT, _callback); _knownMessages.delete(message); + + // Firefox selects the entire message on click for no reason + window.getSelection().removeAllRanges(); } }; });