feat(nested-nodes): recursively get children of moved node

This commit is contained in:
Christopher Möller
2021-10-21 16:59:52 +02:00
parent 2252ea11ae
commit c1d5c35a04
2 changed files with 35 additions and 26 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ function Nodes({
typeof node.height !== 'undefined';
let childRect;
const childNodes = nodes.filter((n) => n.parentNode === node.id);
const childNodes = nodes.filter((n) => n.parentNode === node.id && !n.isHidden);
// if (childNodes.length) {
// console.log(node.id, childNodes, getRectOfNodes(childNodes));