aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-11 17:23:50 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-11 17:23:50 -0400
commit450d0306dd748d7efa18d29edc16cebde90b4d11 (patch)
tree72571601d918c096ff5dba1684a6481e915529f5 /ui
parentda13ea26fec7e21f9cd6566e99b7fd6688b5e96e (diff)
downloadjquery-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.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.autocomplete.js2
1 files changed, 1 insertions, 1 deletions
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;
}