Autocomplete: Don't react to key events on readonly inputs. Fixes #6170 - autocomplete pops up on readOnly inputs.

This commit is contained in:
Scott González 2010-10-11 17:23:50 -04:00
parent da13ea26fe
commit 450d0306dd
2 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ $.widget( "ui.autocomplete", {
"aria-haspopup": "true" "aria-haspopup": "true"
}) })
.bind( "keydown.autocomplete", function( event ) { .bind( "keydown.autocomplete", function( event ) {
if ( self.options.disabled ) { if ( self.options.disabled || self.element.attr( "readonly" ) ) {
return; return;
} }