From 450d0306dd748d7efa18d29edc16cebde90b4d11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 11 Oct 2010 17:23:50 -0400 Subject: [PATCH] Autocomplete: Don't react to key events on readonly inputs. Fixes #6170 - autocomplete pops up on readOnly inputs. --- jquery-1.4.2.js => jquery-1.4.2.js_ | 0 ui/jquery.ui.autocomplete.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename jquery-1.4.2.js => jquery-1.4.2.js_ (100%) diff --git a/jquery-1.4.2.js b/jquery-1.4.2.js_ similarity index 100% rename from jquery-1.4.2.js rename to 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; } -- 2.39.5