Skip to content

Commit

Permalink
Fix for initially-selected item not reappearing in dropdown after ano…
Browse files Browse the repository at this point in the history
…ther option is selected (cache).
  • Loading branch information
brianreavis committed Nov 12, 2013
1 parent acb48e6 commit a43a580
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ $.extend(Selectize.prototype, {
} else {
value = $target.attr('data-value');
if (value) {
self.lastQuery = null;
self.setTextboxValue('');
self.addItem(value);
if (!self.settings.hideSelected && e.type && /mouse/.test(e.type)) {
Expand Down

0 comments on commit a43a580

Please sign in to comment.