From 62733accadee89127a267ea63a44c16e8279c48a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 6 Dec 2020 21:16:16 +0100 Subject: [PATCH] Discard the current selection when saving a quote --- wcfsetup/install/files/js/WCF.Message.js | 6 ++++++ 1 file changed, 6 insertions(+) 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"); + } }, /** -- 2.20.1