Skip to content

Commit dc1efe9

Browse files
committed
Adding ability to set Sifter filter options.
see PR #943
1 parent 763bf02 commit dc1efe9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Selectize.defaults = {
6161
onInitialize : null, // function() { ... }
6262
onChange : null, // function(value) { ... }
6363
onItemAdd : null, // function(value, $item) { ... }
64-
onItemRemove : null, // function(value) { ... }
64+
onItemRemove : null, // function(value, $item) { ... }
6565
onClear : null, // function() { ... }
6666
onOptionAdd : null, // function(value, data) { ... }
6767
onOptionRemove : null, // function(value) { ... }

src/selectize.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ $.extend(Selectize.prototype, {
244244
}
245245
});
246246
$window.on('mousemove' + eventNS, function() {
247-
self.ignoreHover = false;
247+
self.ignoreHover = self.settings.ignoreHover;
248248
});
249249

250250
// store original children and tab index so that they can be
@@ -1054,7 +1054,8 @@ $.extend(Selectize.prototype, {
10541054
fields : settings.searchField,
10551055
conjunction : settings.searchConjunction,
10561056
sort : sort,
1057-
nesting : settings.nesting
1057+
nesting : settings.nesting,
1058+
filter : settings.filter
10581059
};
10591060
},
10601061

@@ -1425,7 +1426,7 @@ $.extend(Selectize.prototype, {
14251426
},
14261427

14271428
/**
1428-
* Clears all options.
1429+
* Clears all options, including all selected items
14291430
*
14301431
* @param {boolean} silent
14311432
*/

0 commit comments

Comments
 (0)