Skip to main content

Search and Top Navigation

#9323 closed bug (notabug)

Opened May 23, 2013 10:49AM UTC

Closed May 24, 2013 12:56PM UTC

Cant tab past a disabled slider

Reported by: AlanHeath Owned by: AlanHeath
Priority: minor Milestone: none
Component: ui.slider Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Create a page with an input then a slider then another input.

Disable the slider by calling the disable method.

Set focus in the first input. Then click the tab key.

Focus gets losts.

The problem seems to be that the <a> does not have tabindex=-1 to prevent focus going to the link.

Attachments (0)
Change History (4)

Changed May 23, 2013 12:27PM UTC by AlanHeath comment:1

I have the following in my code to fix the issue.

$("#MySlider" ).slider( { disabled: true } );

$("#MySlider .ui-slider-handle:first").get(0).tabIndex=-1;

Changed May 24, 2013 12:05AM UTC by tj.vantoll comment:2

owner: → AlanHeath
status: newpending

I am not seeing the problem that you are describing: http://jsfiddle.net/tj_vantoll/SQaUd/. Can you please alter this test case to show the issue that you are seeing.

Thanks.

Changed May 24, 2013 09:25AM UTC by AlanHeath comment:3

status: pendingnew

I managed to reproduce here http://jsfiddle.net/8L6JE/

Note this is using query ui 1.9.2

Changed May 24, 2013 12:56PM UTC by tj.vantoll comment:4

resolution: → notabug
status: newclosed

Interesting, this problem went away in 1.10.1. Looks to have been this commit https://github.com/jquery/jquery-ui/commit/df077abfc2a236a373d2080a9ceae97bb48c2620 even though it wasn't directly related.