Fix selected state transition on firstRun
// FREEBIE
This commit is contained in:
parent
8d214b73d9
commit
db773dd8a7
1 changed files with 2 additions and 1 deletions
|
@ -105,9 +105,10 @@
|
||||||
if (inboxCollection.length === 0) {
|
if (inboxCollection.length === 0) {
|
||||||
this.searchView.showAllContacts = true;
|
this.searchView.showAllContacts = true;
|
||||||
this.searchView.reset();
|
this.searchView.reset();
|
||||||
this.listenToOnce(inboxCollection, 'add', function() {
|
this.listenToOnce(inboxCollection, 'add', function(model) {
|
||||||
this.searchView.showAllContacts = false;
|
this.searchView.showAllContacts = false;
|
||||||
this.searchView.reset();
|
this.searchView.reset();
|
||||||
|
model.trigger('opened');
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue