mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: uses focus helper for d-editor tests (#7610)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user