Skip to content

Commit bb84cbf

Browse files
committed
Fixes #3342, prevents bubbling (and default key behaviour) for slider based key events.
1 parent a681cd9 commit bb84cbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/ui.slider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $.widget("ui.slider", {
113113
.parent()
114114
.bind('focus', function(e) { self._focus(this.firstChild); })
115115
.bind('blur', function(e) { self._blur(this.firstChild); })
116-
.bind('keydown', function(e) { if(!self.options.noKeyboard) self._keydown(e.keyCode, this.firstChild); })
116+
.bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); })
117117
;
118118

119119
// Bind the click to the slider itself
@@ -173,7 +173,9 @@ $.widget("ui.slider", {
173173
x: xpos,
174174
y: ypos
175175
}, handle);
176+
return false;
176177
}
178+
return true;
177179
},
178180
_focus: function(handle,hard) {
179181
this.currentHandle = $(handle).addClass('ui-slider-handle-active');

0 commit comments

Comments
 (0)