Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#5586 closed bug (notabug)

Basic tab setup - selected tab index bug

Reported by: simshaun Owned by:
Priority: major Milestone:
Component: ui.core Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:

Description

Take a look at my example and click the different tabs.

http://www.simshaun.com/jquery-ui-1.8.1/tabs.html

The .tabs('option','selected') feature is very buggy.

Change History (4)

comment:1 Changed 10 years ago by simshaun

Edit: I just noticed, it seems as if it returns the index of the previously selected tab.

comment:2 Changed 10 years ago by simshaun

I'm sorry. This can be closed, as I just realized why this is occurring.

The custom select event is fired before the default select event takes place (expected behavior), so trying to get the "newly" selected index must be done using the ui object thats passed to the select function.

comment:3 Changed 10 years ago by Scott González

Resolution: invalid
Status: newclosed

comment:4 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.