A platform for community discussion. Free, open, simple.
Revert "PERF: stop firing superfluous onSelectionChange"
Sam Saffron8dccf0521cd2
diff --git a/app/assets/javascripts/discourse/components/quote-button.js b/app/assets/javascripts/discourse/components/quote-button.jsindex 180654099fa..8f7d464543b 100644--- a/app/assets/javascripts/discourse/components/quote-button.js+++ b/app/assets/javascripts/discourse/components/quote-button.js@@ -188,16 +188,10 @@ export default Component.extend({.on("mouseup.quote-button", () => {this._prevSelection = null;this._isMouseDown = false;- if (document.activeElement === document.body) {- onSelectionChanged();- }+ onSelectionChanged();}).on("selectionchange.quote-button", () => {- if (- !this._isMouseDown &&- !this._reselected &&- document.activeElement === document.body- ) {+ if (!this._isMouseDown && !this._reselected) {onSelectionChanged();}});