Skip to main content

Search and Top Navigation

#5586 closed bug (notabug)

Opened May 05, 2010 09:01PM UTC

Closed May 06, 2010 02:47AM UTC

Last modified October 11, 2012 09:15PM UTC

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.

Attachments (0)
Change History (4)

Changed May 05, 2010 09:03PM UTC by simshaun comment:1

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

Changed May 05, 2010 09:13PM UTC by simshaun comment:2

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.

Changed May 06, 2010 02:47AM UTC by scottgonzalez comment:3

resolution: → invalid
status: newclosed

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted