Skip to content

Commit 1f26639

Browse files
authored
Merge pull request #1756 from rotdrop/feature/add-silent-option-to-refesh-items
refreshItems(): add "silent" option.
2 parents 41b0693 + f563434 commit 1f26639

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/selectize.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ $.extend(Selectize.prototype, {
15661566
* "Selects" multiple items at once. Adds them to the list
15671567
* at the current caret position.
15681568
*
1569-
* @param {string} value
1569+
* @param {string} values
15701570
* @param {boolean} silent
15711571
*/
15721572
addItems: function(values, silent) {
@@ -1766,15 +1766,15 @@ $.extend(Selectize.prototype, {
17661766
/**
17671767
* Re-renders the selected item lists.
17681768
*/
1769-
refreshItems: function() {
1769+
refreshItems: function(silent) {
17701770
this.lastQuery = null;
17711771

17721772
if (this.isSetup) {
1773-
this.addItem(this.items);
1773+
this.addItem(this.items, silent);
17741774
}
17751775

17761776
this.refreshState();
1777-
this.updateOriginalInput();
1777+
this.updateOriginalInput({silent: silent});
17781778
},
17791779

17801780
/**

0 commit comments

Comments
 (0)