Skip to content

Commit

Permalink
Fix autocomplete keyboard controls by recomputing _maxIndex every tim…
Browse files Browse the repository at this point in the history
…e _searchData changes
  • Loading branch information
Shuwen Qian committed Sep 11, 2015
1 parent 3d4c96e commit aac417e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mm-autocomplete/mm-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@

// wait a tick to ensure we have searchitems
this.async(function(){
if(value && this._searchData.length > 0) {
this._maxIndex = this._searchData.length;
if(value && this._searchData.length > 0) {
this.open();
} else {
this.close();
Expand Down

0 comments on commit aac417e

Please sign in to comment.