mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 13:04:26 +08:00
Revert "PERF: stop firing superfluous onSelectionChange"
This reverts commit fa96054acf612619d66ae3c01d9e4c5a3712728c. Sadly this fails a test case, we may have to hunt up all the parentElements to check for the cooked class to perform the bypass
This commit is contained in:
parent
fa96054acf
commit
8dccf0521c
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user