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 2 changed files with 1 addition and 1 deletion.
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
Copy link

@jitter jitter commented on 450d030 Oct 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@scottgonzalez
Copy link
Member Author

@scottgonzalez scottgonzalez commented on 450d030 Oct 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@scottgonzalez
Copy link
Member Author

@scottgonzalez scottgonzalez commented on 450d030 Oct 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7a3e334.

Please sign in to comment.