Skip to content

Commit

Permalink
Merge pull request #4651 from rminnett/next
Browse files Browse the repository at this point in the history
Fix #3424
  • Loading branch information
jlukic authored Dec 29, 2016
2 parents 8b80a62 + a5028e5 commit 27d58a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 27d58a0

Please sign in to comment.