From 6a65710e9d4737d88d8d88cee998778dfa7b327c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 6 Feb 2015 15:42:09 +0100 Subject: [PATCH] Fixed selecting text when mouseup occurs outside body element --- wcfsetup/install/files/js/WCF.Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 3a6f796c96..7f6dc42720 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -2077,7 +2077,7 @@ WCF.Message.Quote.Handler = Class.extend({ // check if mouseup occured within a
var $element = event.target; while ($element !== $container[0]) { - if ($element.tagName === 'BLOCKQUOTE') { + if ($element === null || $element.tagName === 'BLOCKQUOTE') { this._copyQuote.hide(); return; -- 2.20.1