FIX: More iPad focus issues with new composer

This commit is contained in:
Robin Ward 2015-11-11 14:01:13 -05:00
parent fb375a04f9
commit db5f8857cf
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export default Ember.Component.extend({
$input.on('scroll', () => Ember.run.throttle(this, this._syncEditorAndPreviewScroll, 20));
// Focus on the body unless we have a title
if (!this.get('composer.canEditTitle') && !Discourse.Mobile.mobileView) {
if (!this.get('composer.canEditTitle') && !this.capabilities.touch) {
this.$('.d-editor-input').putCursorAtEnd();
}

View File

@ -4,7 +4,7 @@ export default Ember.Component.extend({
classNames: ['title-input'],
@on('didInsertElement')
_focusOnReply() {
_focusOnTitle() {
if (!this.capabilities.touch) {
this.$('input').putCursorAtEnd();
}