Opened 11 years ago
Closed 11 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: |
Description
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)
Change History (2)
Changed 11 years ago by
Attachment: | TabContainerReload.zip added |
---|
comment:1 Changed 11 years ago by
Milestone: | tbd → 1.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | TabContainer sometimes reloads first tab when last tab is closed → TabContainer: 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.
TabContainer? Reload Sample