From aca26d85ba778698eb65090581da45c1b950b170 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 4 Jan 2017 11:28:51 +0100 Subject: [PATCH] Fixed weird message selection in Firefox --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js | 3 +++ 1 file changed, 3 insertions(+) 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(); } }; }); -- 2.20.1