Browse Source

Merge pull request #4651 from rminnett/next

Fix #3424
pull/4929/head
Jack Lukic 8 years ago
committed by GitHub
parent
commit
27d58a0179
1 changed files with 5 additions and 2 deletions
  1. 7
      src/definitions/modules/dropdown.js

7
src/definitions/modules/dropdown.js

@ -805,12 +805,15 @@ $.fn.dropdown = function(parameters) {
}
if(settings.match == 'both' || settings.match == 'value') {
value = String(module.get.choiceValue($choice, text));
if(value.search(beginsWithRegExp) !== -1) {
results.push(this);
return true;
}
else if(settings.fullTextSearch && module.fuzzySearch(searchTerm, value)) {
else if (settings.fullTextSearch === 'exact' && module.exactSearch(searchTerm, value)) {
results.push(this);
return true;
}
else if (settings.fullTextSearch === true && module.fuzzySearch(searchTerm, value)) {
results.push(this);
return true;
}

Loading…
Cancel
Save