Hello,
at one place in our code I am calling the model.setDataProperty()
method. However, the ModelChanged
listener on the diagram is not called. The model contains the new value afterwards though.The ModelChanged listener is used to save the diagram after the model has been changed. It works in all other places in our application, just not in this one case.
The setDataProperty(objectData, propertyName, value) is called with these parameters:
objectData:
propertyName:
“value”
value:
I tried to reproduce it, but way yet unsuccessful. In the following example it works as expected:
- Do the above parameters look as if they shold work?
- Is there any way to debug, why the ModelChanged is not triggered?
- (I noticed that in our application, every object in the nodeDataArray (even the nested ones) has a gohashid property. In the codepen linked above, only the main node objects have a gohashid. When/how is this gohashid set?)