Opened 12 years ago

Closed 12 years ago

#10058 closed defect (fixed)

TabContainer: sometimes reloads first tab when last tab is closed

Reported by: CABurt Owned by:
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.2
Keywords: tabcontainer reload Cc:
Blocked By: Blocking:


With Dojo 1.3 or higher, If:
-The content of the first tab of a TabContainer? is not loaded using its href.
-The content of the first tab is changed by changing its href.
-One or more new tabs are created and filled from their hrefs.
-Closing the last tab created will cause the first tab to reload.

The reload only occurs once.
This behavior does not occur with Dojo 1.2
Tested with Firefox 3 and IE 6.

My site uses the first tab to initially display a welcome message, site news, etc. Depending on what the user wants to do the first tab may be reloaded with a search form via its href. New tabs may be created and filled with search results. With Dojo 1.3 closing the last tab causes the search form in the first tab to be reloaded - which wipes out the user's search criteria and disturbs their sangfroid.

This quirk can be avoided by loading the first tab from an href.

I will upload sample files.

Attachments (1) (1.6 KB) - added by CABurt 12 years ago.
TabContainer? Reload Sample

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by CABurt

Attachment: added

TabContainer? Reload Sample

comment:1 Changed 12 years ago by bill

Milestone: tbd1.4
Resolution: fixed
Status: newclosed
Summary: TabContainer sometimes reloads first tab when last tab is closedTabContainer: sometimes reloads first tab when last tab is closed

After making some corrections to your test case (missing dojo.require("dojo.parser") and missing closing </div> I was able to reproduce this on 1.3. However, it's already fixed on 1.4.

Note: See TracTickets for help on using tickets.