Diagram history brakes on node delete if connector constraints are present

Hello, 

On "selection-change" event, I am enforcing constraints on some connectors like this:

args.newValue[0].constraints = ConnectorConstraints.Default & ~ConnectorConstraints.Delete & ~ConnectorConstraints.DragSourceEnd & ~ConnectorConstraints.Drag

This works as expected (I delete a target node that is connected to my connector, and my connector is still in the diagram). If I undo the move, although the deleted node appears back nearby my connector, they are not connected and the user needs to reattach the target node manually.


Environment:  ej2-vue-diagrams19.4.42 

Vue 2.6.14.


3 Replies

AR Aravind Ravi Syncfusion Team May 31, 2022 09:10 AM UTC

Hi Peter,


We will validate and update you with more details on June 3rd 2022.


Regards

Aravind Ravi



AR Aravind Ravi Syncfusion Team June 3, 2022 10:50 AM UTC

Hi Peter,  

  

Reported Issue: When undo connector is not attached to node

    

We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on June 22nd 2022 weekly patch release.  


https://www.syncfusion.com/feedback/35407/when-undo-connector-is-not-attached-to-node  

  

Regards,  

Aravind Ravi



AR Aravind Ravi Syncfusion Team June 23, 2022 06:18 AM UTC

Hi Peter,


We have fixed the reported issue and included it in our latest patch release which is rolled out successfully.


Please upgrade to the latest version (v20.1.61) packages of diagrams to resolve this issue.       


https://www.npmjs.com/package/@syncfusion/ej2-diagrams


Regards

Aravind Ravi


Loader.
Up arrow icon