Skip to content

Commit

Permalink
(fix): Refresh matches after delayed load. Fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Dec 21, 2017
1 parent 693761e commit 7ce0cf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ <h6>Multi, fixed</h6>
class="form-control" [custom]="false" [multi]="true"></type-ahead>
</div>
</div>

<h6>Single, complex object</h6>
<div class="row">
<div class="col-6">
Expand All @@ -65,7 +64,6 @@ <h6>Single, complex object</h6>
class="form-control" idField="code" [complex]="true"></type-ahead>
</div>
</div>

<h6>Multi, complex object with template</h6>
<div class="row">
<div class="col-6">
Expand All @@ -82,7 +80,6 @@ <h6>Multi, complex object with template</h6>
{{item.name}} ({{item.code}})
</ng-template>
</div>

<h6>Multi, complex with Http call</h6>
<div class="row">
<div class="col-6">
Expand Down
1 change: 1 addition & 0 deletions src/typeahead.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export class TypeaheadComponent implements ControlValueAccessor, AfterViewInit,
while(this.callbackQueue.length) {
// take first one and process it
this.callbackQueue.shift().apply(this);
this._inputChangeEvent.emit('');
}
});
}
Expand Down

0 comments on commit 7ce0cf7

Please sign in to comment.