slider: use preventDefault on click event on handle instead of returning false (see #3228)

This commit is contained in:
Paul Bakaus 2008-09-19 09:19:10 +00:00
parent f9a77723b6
commit faec9388e2

View File

@ -111,7 +111,7 @@ $.widget("ui.slider", {
}) })
.wrap('<a href="#" style="outline:none;border:none;"></a>') .wrap('<a href="#" style="outline:none;border:none;"></a>')
.parent() .parent()
.bind('click', function() { return false; }) .bind('click', function(e) { e.preventDefault(); })
.bind('focus', function(e) { self._focus(this.firstChild); }) .bind('focus', function(e) { self._focus(this.firstChild); })
.bind('blur', function(e) { self._blur(this.firstChild); }) .bind('blur', function(e) { self._blur(this.firstChild); })
.bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); }) .bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); })