Opened 10 years ago

Closed 10 years ago

#9323 closed bug (notabug)

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.

Change History (4)

comment:1 Changed 10 years ago by AlanHeath

I have the following in my code to fix the issue. $("#MySlider" ).slider( { disabled: true } ); $("#MySlider .ui-slider-handle:first").get(0).tabIndex=-1;

comment:2 Changed 10 years ago by tj.vantoll

Owner: set to 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.

comment:3 Changed 10 years ago by AlanHeath

Status: pendingnew

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

Note this is using query ui 1.9.2

comment:4 Changed 10 years ago by tj.vantoll

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.

Note: See TracTickets for help on using tickets.