Opened 10 years ago

Closed 7 years ago

#9776 closed enhancement (fixed)

TabContainer: close active tab should switch to adjacent tab instead of first.

Reported by: rct Owned by: bill
Priority: high Milestone: 1.9
Component: Dijit Version: 1.3.2
Keywords: tabcontainer tab order Cc: rct+dojotrac@…
Blocked By: Blocking:

Description (last modified by bill)

When closing a tab in the tabContainer, the tab that is shown reverts to the first (left most) tab. This can be confusing when many tabs are open.

Ideally closing a tab should then display the tab that was most recently viewed similar to the way Firefox tabs work. TabContainer would need to maintain an ordered list of most recently viewed tabs.

Thanks.

Change History (6)

comment:1 Changed 10 years ago by bill

Milestone: tbdfuture
Summary: tabContainer close should revert to most recently viewed tab instead of first.TabContainer: close should revert to most recently viewed tab instead of first.

comment:2 Changed 9 years ago by bill

Alternately could switch to the tab next to the one that was closed (either before or after it). That seems more intuitive to me but it's debatable.

comment:3 Changed 9 years ago by bill

See also #11371.

comment:4 Changed 9 years ago by bill

Description: modified (diff)
Summary: TabContainer: close should revert to most recently viewed tab instead of first.TabContainer: close active tab should switch to adjacent tab instead of first.

I checked both FF and chrome, they switch to the adjacent tab, not the mostly recently viewed one. That's easier since we don't need to remember the most recently viewed tab, so let's do that.

comment:5 Changed 7 years ago by bill

Milestone: future1.9
Owner: set to bill
Status: newassigned

comment:6 Changed 7 years ago by bill

Resolution: fixed
Status: assignedclosed

In [29562]:

when closing the selected tab, move focus to the previous tab, fixes #9776 !strict.

Note: See TracTickets for help on using tickets.