Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14326 closed bug (notabug)

JQuery UI 1.10.3 Tabs Sortable

Reported by: smcardle@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hi All

I am using JQuery latest and JQuery UI 1.10.3 and there is a problem with the tab order after sorting.

Before sorting the tab order is 0 based but after sorting the tab order becomes 1 based.

This causes serious issues with our UI. All tabs are correct until they are sorted, just 2 tabs shown are enough to identify this issue.

Regards

Steve

Change History (4)

comment:1 Changed 7 years ago by smcardle@…

Actually, after a little more testing it appears that swapped tabs swap places.

So, if I have 2 tabs open and then swap them, the index does not update. If I add a third tab then the order of this is maintained, just the original swapped tabs are now indexed incorrectly.

Steve

comment:2 Changed 7 years ago by smcardle@…

For an example follow these steps.

  1. Go to eoss.co.nz
  2. On the accordion click the first 2 shown list items
  3. Select the open tabs or the list items from the accordion and they will match i.e. selecting the list item will activate the tab and selecting the tab will

highlight the matched list item. Do this as much as you like to convince yourself the functionality is as intended.

  1. Drag and swap the tabs. Selecting the tabs will still select the correct list item due to the JQuery selector but selecting the list items now select the alternate tabs.
  2. Expand the next accordion and select the first list item. This will stay in sync between the list item and the tab, but the first two tabs will still be in the wrong order.

Regards

Steve

comment:3 Changed 7 years ago by scottgonzalez

Resolution: notabug
Status: newclosed

You need to call the refresh() method. Please ask for help on the forums or Stack Overflow. Also, this is the bug tracker for jQuery core. jQuery UI bugs need to be reported at http://bugs.jqueryui.com and must included a *reduced* test case showing the problem.

comment:4 Changed 7 years ago by anonymous

I do call the refresh() method....

Sorry about the wrong bug tracker, this is my first post here :)

Regards

Steve

Note: See TracTickets for help on using tickets.