Bug Tracker

Modify

Ticket #1982 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Adding and removing tabs repeatedly results in inoperable tabs

Reported by: klaus Owned by: klaus
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

Description

Test:

            $(function() {
                $('#container-9 ul').tabs({ disabled: [3], fxFade: true, fxFade: true, fxSpeed: 'fast', cache: true });
                $('<p><a href="#">Remove 2nd tab (error: you cannot switch to tab 4)<\/a><\/p>').prependTo('#fragment-22').find('a').click(function() {
                    $('#container-9 ul').tabsRemove(2);
                    return false;
                });
                $('<p><a href="#">Add new tab<\/a><\/p>').prependTo('#fragment-22').find('a').click(function() {
                    $('#container-9 ul').tabsAdd('test3.html','tab 4');
                    return false;
                });
                $('<p><a href="#">Remove 2nd tab<\/a><\/p>').prependTo('#fragment-22').find('a').click(function() {
                    $('#container-9 ul').tabsRemove(2);
                    return false;
                });
                $('<p><a href="#">Add 2 tabs<\/a><\/p>').prependTo('#fragment-22').find('a').click(function() {
                    $('#container-9 ul').tabsAdd('test1.html','tab 2');
                    $('#container-9 ul').tabsAdd('test2.html','tab 3');
                    return false;
                });
            });

Change History

comment:1 Changed 5 years ago by klaus

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.