DEV: uses focus helper for d-editor tests (#7610)

This commit is contained in:
Joffrey JAFFEUX
2019-05-27 17:31:11 +02:00
committed by GitHub
parent 669bfaba30
commit 192562745f
5 changed files with 14 additions and 15 deletions

View File

@@ -544,7 +544,8 @@ export default Ember.Component.extend({
$textarea.focus();
}
textarea.selectionStart = from;
textarea.selectionEnd = textarea.selectionStart + length;
textarea.selectionEnd = from + length;
$textarea.scrollTop(oldScrollPos);
});
},