Skip to content
Permalink
Browse files

Autocomplete: Don't react to key events on readonly inputs. Fixes #61…

…70 - autocomplete pops up on readOnly inputs.
  • Loading branch information...
scottgonzalez committed Oct 11, 2010
1 parent da13ea2 commit 450d0306dd748d7efa18d29edc16cebde90b4d11
Showing with 1 addition and 1 deletion.
  1. 0 jquery-1.4.2.js → jquery-1.4.2.js_
  2. +1 −1 ui/jquery.ui.autocomplete.js
File renamed without changes.
@@ -41,7 +41,7 @@ $.widget( "ui.autocomplete", {
"aria-haspopup": "true"
})
.bind( "keydown.autocomplete", function( event ) {
if ( self.options.disabled ) {
if ( self.options.disabled || self.element.attr( "readonly" ) ) {
return;
}

3 comments on commit 450d030

@jitter

This comment has been minimized.

Copy link

replied Oct 11, 2010

Umm why would you rename the jquery-1.4.2.js file? This breaks the whole uni-test-suite

@scottgonzalez

This comment has been minimized.

Copy link
Member Author

replied Oct 11, 2010

Ugh, that was not supposed to be committed. Not sure why Git included that. Thanks for catching it.

@scottgonzalez

This comment has been minimized.

Copy link
Member Author

replied Oct 11, 2010

Fixed in 7a3e334.

Please sign in to comment.
You can’t perform that action at this time.