diff options
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 42b77e179..3aa5d42dc 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -152,7 +152,7 @@ $.widget( "ui.autocomplete", { // escape regex characters var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); response( $.grep( array, function(value) { - return matcher.test( value.value || value.label || value ); + return matcher.test( value.label || value.value || value ); }) ); }; } else if ( typeof this.options.source == "string" ) { |