FIX: More iPad focus issues with new composer
This commit is contained in:
parent
fb375a04f9
commit
db5f8857cf
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ export default Ember.Component.extend({
|
|||
classNames: ['title-input'],
|
||||
|
||||
@on('didInsertElement')
|
||||
_focusOnReply() {
|
||||
_focusOnTitle() {
|
||||
if (!this.capabilities.touch) {
|
||||
this.$('input').putCursorAtEnd();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue