mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 16:24:55 +00:00
FIX: hide 'Quote Reply' button when there's no selection anymore on iOS
This commit is contained in:
parent
7bd51e7882
commit
25cb19eeca
@ -32,8 +32,6 @@ export default Ember.Controller.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
// no selections
|
|
||||||
if (selection.isCollapsed) return;
|
|
||||||
|
|
||||||
// retrieve the selected range
|
// retrieve the selected range
|
||||||
const range = selection.getRangeAt(0),
|
const range = selection.getRangeAt(0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user