Opened 9 years ago

Closed 9 years ago

#7516 closed bug (notabug)

Selected Numbers seem wrong

Reported by: nstuart Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:

Description

when using the selected option, it seems to be off by it's documented index. The documentation says it's a zero-based index, but if I do

$("#specialEffect").tabs("option", "selected", tabLocation);

and tabLocation is 2, it sets it to the second tab, instead of a Zero-based index of the "3rd" tab. When I do a get it get's them properly(A value of 2 is the "3rd" tab), but setting it seems to not follow the convention.

Change History (3)

comment:1 Changed 9 years ago by nstuart

It would seem as though the system is adding one to the given setter. The documentation says that an index of -1 will make nothing selected, but when given that, it put's it on tab 0. When given -2, it presents it as none-selected.

Version 0, edited 9 years ago by nstuart (next)

comment:2 Changed 9 years ago by nstuart

Please Ignore/Delete. The issue was due to using a string instead of an int.

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

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.