mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Autocomplete: Don't react to key events on readonly inputs. Fixes #6170 - autocomplete pops up on readOnly inputs.
This commit is contained in:
parent
da13ea26fe
commit
450d0306dd
2
ui/jquery.ui.autocomplete.js
vendored
2
ui/jquery.ui.autocomplete.js
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user