Skip to content

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

Closed
wants to merge 3 commits into from

Conversation

tjvantoll
Copy link
Member

Fixes #9890

@tjvantoll
Copy link
Member Author

Tested in IE 8 - 10, Firefox, Chrome, and Safari and this seems solid to me.

@jzaefferer
Copy link
Member

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" );
Copy link
Member

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.

@tjvantoll
Copy link
Member Author

I removed the elements reference and gave this a more thorough browser-testing pass (IE8+, Safari 5.1+, Windows 8 touch). Unless there are any final objections I'm going to land this.

this._on( elements, this._handleEvents );
this._hoverable( elements );
this._focusable( elements );
this.handles.add( this.range ).filter( ".ui-slider-handle" );
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Removed.

@scottgonzalez
Copy link
Member

Looks good to land.

@tjvantoll tjvantoll closed this in dfc5c34 Mar 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants