Collapse a tree correctly even if a grandchild is focused (#330, regression)
This commit is contained in:
parent
2c2050b61e
commit
e5ffbf3bea
@ -5652,9 +5652,10 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
if (aCollapse && aTab == b.selectedTab && (parent = this.getParentTab(aTab))) {
|
if (aCollapse && aTab == b.selectedTab && (parent = this.getParentTab(aTab))) {
|
||||||
var newSelection = parent;
|
var newSelection = parent;
|
||||||
this.getAncestorTabs(aTab).some(function(aAncestor) {
|
this.getAncestorTabs(aTab).some(function(aAncestor) {
|
||||||
if (!this.isCollapsed(aAncestor))
|
if (!this.isCollapsed(aAncestor)) {
|
||||||
|
newSelection = aAncestor;
|
||||||
return true;
|
return true;
|
||||||
newSelection = aAncestor;
|
}
|
||||||
return false;
|
return false;
|
||||||
}, this);
|
}, this);
|
||||||
b.selectedTab = newSelection;
|
b.selectedTab = newSelection;
|
||||||
|
Loading…
Reference in New Issue
Block a user