Skip to content

Commit a43a580

Browse files
committed
Fix for initially-selected item not reappearing in dropdown after another option is selected (cache).
1 parent acb48e6 commit a43a580

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/selectize.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ $.extend(Selectize.prototype, {
561561
} else {
562562
value = $target.attr('data-value');
563563
if (value) {
564+
self.lastQuery = null;
564565
self.setTextboxValue('');
565566
self.addItem(value);
566567
if (!self.settings.hideSelected && e.type && /mouse/.test(e.type)) {

0 commit comments

Comments
 (0)