Fix initial input focus in compose view
This selector was being run too early, before the target was rendered.
This commit is contained in:
parent
a95b6165f4
commit
3e4c571749
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,6 @@
|
|||
this.render();
|
||||
this.$group_update = this.$('.new-group-update-form');
|
||||
this.$create = this.$('.create');
|
||||
this.$input = this.$('input.search');
|
||||
|
||||
// Group avatar file input
|
||||
this.appWindow = options.appWindow;
|
||||
|
@ -35,6 +34,8 @@
|
|||
|
||||
this.recipients_view = new Whisper.RecipientsInputView();
|
||||
this.$('.scrollable').append(this.recipients_view.el);
|
||||
this.$input = this.$('input.search');
|
||||
|
||||
this.listenTo(this.getRecipients(), 'add', this.updateControls);
|
||||
this.listenTo(this.getRecipients(), 'remove', this.updateControls);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue