Merge pull request #7274 from umbraco/v8/bugfix/AB4075-activeNode-should-match-nodeType
Checking nodeType on activeNode to ensure that nodes originate from same treeAlias
This commit is contained in:
@@ -90,7 +90,9 @@ angular.module("umbraco.directives")
|
||||
css.push("umb-tree-item--deleted");
|
||||
}
|
||||
|
||||
if (actionNode) {
|
||||
// checking the nodeType to ensure that this node and actionNode is from the same treeAlias
|
||||
if (actionNode && actionNode.nodeType === node.nodeType) {
|
||||
|
||||
if (actionNode.id === node.id && String(node.id) !== "-1") {
|
||||
css.push("active");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user