Skip to content

Commit

Permalink
Fix dropdown close in no-filter mode
Browse files Browse the repository at this point in the history
Closes #23
  • Loading branch information
indrimuska committed Nov 17, 2016
1 parent c8b301d commit bf96bec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jquery-editable-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
EditableSelect.prototype.select = function ($li) {
if (!this.$list.has($li) || !$li.is('li.es-visible:not([disabled])')) return;
this.$input.val($li.text());
this.hide();
if (this.options.filter) this.hide();
this.filter();
this.utility.trigger('select', $li);
};
Expand Down Expand Up @@ -170,6 +170,7 @@
that.es.select(that.es.$list.find('li.selected'));
e.preventDefault();
}
break;
case 9: // Tab
case 27: // Esc
that.es.hide();
Expand Down

0 comments on commit bf96bec

Please sign in to comment.