Autocomplete: Use the text of the option, not the value when checking for valid values. Fixes #6673 - Autocomplete combobox is not working in IE if value and name is different.

This commit is contained in:
Scott González 2010-11-19 16:28:02 -05:00
parent 4637695894
commit ddf59462af

View File

@ -58,7 +58,7 @@
var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ),
valid = false;
select.children( "option" ).each(function() {
if ( this.value.match( matcher ) ) {
if ( $( this ).text().match( matcher ) ) {
this.selected = valid = true;
return false;
}