Skip to content

Commit

Permalink
Merge pull request #3516 from PaulL1/fixes2
Browse files Browse the repository at this point in the history
Fix(treeView): fix #3399 when collapse row expandAll should be unset
  • Loading branch information
PaulL1 committed May 16, 2015
2 parents 869be69 + 394a919 commit 9be0549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/features/tree-view/js/tree-view.js
Expand Up @@ -515,6 +515,7 @@

if ( row.treeExpandedState.state !== uiGridTreeViewConstants.COLLAPSED ){
row.treeExpandedState.state = uiGridTreeViewConstants.COLLAPSED;
grid.treeView.expandAll = false;
grid.api.treeView.raise.rowCollapsed(row);
grid.queueGridRefresh();
}
Expand All @@ -536,6 +537,7 @@
}

service.setAllNodes(grid, row.treeExpandedState, uiGridTreeViewConstants.COLLAPSED);
grid.treeView.expandAll = false;
grid.queueGridRefresh();
},

Expand Down
2 changes: 1 addition & 1 deletion src/features/tree-view/test/tree-view.spec.js
@@ -1,4 +1,4 @@
ddescribe('ui.grid.treeView uiGridTreeViewService', function () {
describe('ui.grid.treeView uiGridTreeViewService', function () {
var uiGridTreeViewService;
var uiGridTreeViewConstants;
var gridClassFactory;
Expand Down

0 comments on commit 9be0549

Please sign in to comment.