We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe0a0a commit 90aaa38Copy full SHA for 90aaa38
src/selectize.js
@@ -69,7 +69,7 @@ var Selectize = function($input, settings) {
69
self.canCreate = function(input) {
70
var filter = self.settings.createFilter;
71
return input.length
72
- && (typeof filter !== 'function' || filter(input))
+ && (typeof filter !== 'function' || filter.apply(self, [input]))
73
&& (typeof filter !== 'string' || new RegExp(filter).test(input))
74
&& (!(filter instanceof RegExp) || filter.test(input));
75
};
0 commit comments