mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed slider responds to keypresses when disabled
This commit is contained in:
parent
25ad531eb4
commit
829ce5f399
@ -155,6 +155,9 @@ $.widget("ui.slider", {
|
||||
},
|
||||
|
||||
_keydown: function(keyCode, handle) {
|
||||
if (this.options.disabled)
|
||||
return;
|
||||
|
||||
var k = keyCode;
|
||||
if(/(33|34|35|36|37|38|39|40)/.test(k)) {
|
||||
var o = this.options, xpos, ypos;
|
||||
|
Loading…
Reference in New Issue
Block a user