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:
Claus
2019-12-06 09:44:42 +01:00
committed by GitHub

View File

@@ -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");
}