Skip to content

Commit 9eb794d

Browse files
author
jmoore-sparc
committed
passing silent value to clear method to ensure events are not raised
1 parent aba3e0a commit 9eb794d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/selectize.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ $.extend(Selectize.prototype, {
766766
var events = silent ? [] : ['change'];
767767

768768
debounce_events(this, events, function() {
769-
this.clear();
769+
this.clear(silent);
770770
this.addItems(value, silent);
771771
});
772772
},
@@ -1436,7 +1436,7 @@ $.extend(Selectize.prototype, {
14361436
}
14371437

14381438
if (!self.options.hasOwnProperty(value)) return;
1439-
if (inputMode === 'single') self.clear();
1439+
if (inputMode === 'single') self.clear(silent);
14401440
if (inputMode === 'multi' && self.isFull()) return;
14411441

14421442
$item = $(self.render('item', self.options[value]));

0 commit comments

Comments
 (0)