DEV Community 👩‍💻👨‍💻

Adam Crockett
Adam Crockett

Posted on

Vue props not persisting update

So I'm working on a node editor that allows you to do multiple selection and multiple move.

I have spent hours on this trivial problem with no joy.

Steps to recreate issue

  • shift click two nodes
  • move one node, (see two nodes move 👌)
  • do the move again

You will see the node that was 'parented' by the move just snaps back to it's original props rather than remembering it's position?!

Files of interest

  • Boundary.vue (parent)
  • Node.vue (v-for children)

https://0g7eu.csb.app/

Top comments (0)

🌚 Life is too short to browse without dark mode