Element.ts:527 Uncaught Error: Child element to remove not found

Enonic version: 6.6.2-SNAPSHOT
OS: Mac and linux

When trying to reorder parts in a layout regions by drag and drop in Component view, i get the following error in browser js console:

Element.ts:527 Uncaught Error: Child element to remove not found

Here’s the relevant code:

private unregisterChildElement(child: Element): number {
            var childIndex = this.children.indexOf(child);
            if (childIndex < 0) {
                throw new Error("Child element to remove not found");
            }
            this.children.splice(childIndex, 1);
            child.parentElement = null;
            return childIndex;
        }

Ok, we’ll look into this.

Hi

We have tested this under 6.6.1 and 6.7.0-SNAPSHOT but couldn’t reproduce the error, so I assume it’s specific to your layout(s). Can you send us your source code so that we could try it with your setup?