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...
1 parent da13ea2 commit 450d0306dd748d7efa18d29edc16cebde90b4d11 @scottgonzalez scottgonzalez committed Oct 11, 2010
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 commented on 450d030 Oct 11, 2010

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

Owner

scottgonzalez replied Oct 11, 2010

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

Owner

scottgonzalez replied Oct 11, 2010

Fixed in 7a3e334.

Please sign in to comment.