do not select hidden tree root

This commit is contained in:
nightwing 2015-02-18 01:43:26 +04:00
parent a0b95d110f
commit 50dc354627

View File

@ -269,7 +269,7 @@ var DataProvider = function(root) {
return node.isSelected = !!val;
};
this.isSelectable = function(node) {
return !node || !node.noSelect;
return !node || !(node.noSelect || node.$depth < 0);
};
this.isAncestor = function(node, child) {