woodenconsulting / react-js-diagrams

A flow based diagramming library written in React
MIT License
220 stars 61 forks source link

Initial nodes do not move, instead they produce new nodes #24

Open alex-shamshurin opened 6 years ago

alex-shamshurin commented 6 years ago

I copied example 1 and it behaves differently. Node1 and node2 are not draggable. When I try to drag it - it make new nodes which are draggable.

The code is from first demo.

Initial state: two nodes

dia1

but in console I see many nodes.

dia2

Attempt to move nodes - got new nodes

dia3

yangalav commented 6 years ago

I am having the same issue, I did notice that taking out the onChange function on the RJD.DiagramWidget component removed the duplication