FIX: hide 'Quote Reply' button when there's no selection anymore on iOS

This commit is contained in:
Régis Hanol 2015-10-01 00:11:18 +02:00
parent 7bd51e7882
commit 25cb19eeca

View File

@ -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),