Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#6168 closed bug (worksforme)

Tabs misordering bug with unusual markup

Reported by: betalb Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:


I have following markup for tabs

<div id="tabs">
    <li><a href="#tab-1">1</a></li>
    <div id="tab-1"></div>

NOTE tab panels wrapped into div

Then I call

  .bind('tabsadd', function (event, ui) {
    // FIXME: === 'tab-1'
  .tabs('add', '#fake', 'new tab');

_tabify uses add method of jQuery to collect tab panels, but add method reorders elements according to dom order (starting from 1.4), so the last panel will be #tab-1, not #fake, because it have been inserted just after <ul>

This bug has a relation to #4233 and #5813

Change History (2)

comment:1 Changed 13 years ago by Scott González

Resolution: worksforme
Status: newclosed

I can't reproduce this in any version. Alerting always says "fake" and clicking on the tabs works properly.

comment:2 Changed 11 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.