b310-digital / teammapper

Mindmapping made simple: Host and create your own mindmaps. Share your mindmap sessions with your team and collaborate on mindmaps.
https://teammapper.org
MIT License
203 stars 16 forks source link

Pasting can be used to add childs to detached nodes #249

Closed JannikStreek closed 1 month ago

JannikStreek commented 5 months ago

Describe the bug When cutting nodes it is possible to paste these to a detached node. that should not be possible.

To Reproduce Steps to reproduce the behavior:

  1. Cut some nodes
  2. Paste nodes to detached node

Expected behavior Detached nodes shouldn't allow pasted nodes, therefore, nothing should happen in this case. An error in the console should be logged.