-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Slider: Switch handles from <a href="#"> to <span tabindex="0"> #1207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tested in IE 8 - 10, Firefox, Chrome, and Safari and this seems solid to me. |
Looks good to me. |
@@ -149,7 +149,7 @@ return $.widget( "ui.slider", $.ui.mouse, { | |||
}, | |||
|
|||
_setupEvents: function() { | |||
var elements = this.handles.add( this.range ).filter( "a" ); | |||
var elements = this.handles.add( this.range ).filter( ".ui-slider-handle" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're here, let's just remove the elements
variable and use this.handles
directly. This code became obsolete a long time ago and now ranges are always divs.
I removed the |
this._on( elements, this._handleEvents ); | ||
this._hoverable( elements ); | ||
this._focusable( elements ); | ||
this.handles.add( this.range ).filter( ".ui-slider-handle" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line just needs to be dropped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Removed.
Looks good to land. |
Fixes #9890