diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-10-11 17:23:50 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-10-11 17:23:50 -0400 |
commit | 450d0306dd748d7efa18d29edc16cebde90b4d11 (patch) | |
tree | 72571601d918c096ff5dba1684a6481e915529f5 | |
parent | da13ea26fec7e21f9cd6566e99b7fd6688b5e96e (diff) | |
download | jquery-ui-450d0306dd748d7efa18d29edc16cebde90b4d11.tar.gz jquery-ui-450d0306dd748d7efa18d29edc16cebde90b4d11.zip |
Autocomplete: Don't react to key events on readonly inputs. Fixes #6170 - autocomplete pops up on readOnly inputs.
-rw-r--r-- | jquery-1.4.2.js_ (renamed from jquery-1.4.2.js) | 0 | ||||
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/jquery-1.4.2.js b/jquery-1.4.2.js_ index fff677643..fff677643 100644 --- a/jquery-1.4.2.js +++ b/jquery-1.4.2.js_ diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index f9607aef7..e992aadc3 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -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; } |