Avoid dragging one group into another. Only nodes

Hi, everybody. I have a problem, I want to avoid dragging one group into another and only the nodes within each individual group can be moved. Try modifying the mouseDragLeave in the definition of the groups, besides having set the movable and the groupable to false. Thanks in advance.

Here I give the definition of my group.


You could make the groups not movable or copyable. But more generally, you can implement a group validation predicate: https://gojs.net/latest/intro/validation.html#GroupingValidation

An example is https://gojs.net/latest/samples/planogram.html

Thanks! The planogram example worked for me.