multi enum match any word prop

This commit is contained in:
Yuri Kuznetsov
2020-05-18 11:19:40 +03:00
parent af038e3306
commit bc3e531447
3 changed files with 16 additions and 6 deletions
+6 -3
View File
@@ -321,7 +321,10 @@ define('views/fields/array', ['views/fields/base', 'lib!Selectize'], function (D
highlight: false,
searchField: ['label'],
plugins: ['remove_button'],
score: function (search) {
};
if (!this.matchAnyWord) {
selectizeOptions.score = function (search) {
var score = this.getScoreFunction(search);
search = search.toLowerCase();
return function (item) {
@@ -330,8 +333,8 @@ define('views/fields/array', ['views/fields/base', 'lib!Selectize'], function (D
}
return 0;
};
}
};
};
}
if (this.allowCustomOptions) {
selectizeOptions.persist = false;