Browse Source

now dropdown searches all words of a sentence provided by dropdown item. #7006

pull/7037/head
Amir 3 years ago
parent
commit
786ba05e8c
1 changed files with 1 additions and 1 deletions
  1. 2
      dist/components/dropdown.js

2
dist/components/dropdown.js

@ -788,7 +788,7 @@ $.fn.dropdown = function(parameters) {
: module.get.query(), : module.get.query(),
results = null, results = null,
escapedTerm = module.escape.string(searchTerm), escapedTerm = module.escape.string(searchTerm),
beginsWithRegExp = new RegExp('^' + escapedTerm, 'igm')
beginsWithRegExp = new RegExp(escapedTerm, 'igm')
; ;
// avoid loop if we're matching nothing // avoid loop if we're matching nothing
if( module.has.query() ) { if( module.has.query() ) {

Loading…
Cancel
Save