Skip to content

Commit

Permalink
fix(typeahead): propagate redrawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Jan 6, 2017
1 parent 6b120db commit 82293e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/autocomplete/typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function Typeahead(o) {
.onSync('closed', this._onClosed, this)
.onSync('shown', this._onShown, this)
.onSync('empty', this._onEmpty, this)
.onSync('redrawn', this._onRedrawn, this)
.onAsync('datasetRendered', this._onDatasetRendered, this);

this.input = new Typeahead.Input({input: $input, hint: $hint})
Expand Down Expand Up @@ -190,6 +191,10 @@ _.mixin(Typeahead.prototype, {
this.eventBus.trigger('empty');
},

_onRedrawn: function onRedrawn() {
this.eventBus.trigger('redrawn');
},

_onShown: function onShown() {
this.eventBus.trigger('shown');
if (this.autoselect) {
Expand Down

0 comments on commit 82293e4

Please sign in to comment.