mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: More iPad focus issues with new composer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user