This commit is contained in:
Joao Moreno 2016-04-11 09:57:55 +02:00
parent a862919a89
commit e1cbf08f39

View file

@ -319,11 +319,12 @@ export class DefaultController implements _.IController {
tree.clearHighlight(payload);
} else {
var focus = tree.getFocus();
tree.collapse(focus).done((didCollapse) => {
tree.collapse(focus).then(didCollapse => {
if (focus && !didCollapse) {
tree.focusParent(payload);
return tree.reveal(tree.getFocus());
}
});
}).done(null, errors.onUnexpectedError);
}
return true;
}