From: Alexander Ebert Date: Sun, 6 Dec 2020 20:16:16 +0000 (+0100) Subject: Discard the current selection when saving a quote X-Git-Tag: 5.3.2~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=62733accadee89127a267ea63a44c16e8279c48a;p=GitHub%2FWoltLab%2FWCF.git Discard the current selection when saving a quote --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 6450ff7e83..6b0a5ec43b 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1592,6 +1592,12 @@ if (COMPILER_TARGET_DEFAULT) { } }); this._proxy.sendRequest(); + + const selection = window.getSelection(); + if (selection.rangeCount) { + selection.removeAllRanges(); + this._copyQuote[0].classList.remove("active"); + } }, /**