error when changing source or target connector

Hi,

I have a error message when using connectors. 

I have 2 shapes and I a connector not attached to the shapes with ports. When I drag the source or target over a shape, I get this error:

ej2.min.js:10 Uncaught TypeError: Cannot set properties of null (setting 'actualObject')

    at e.findObjectUnderMouse (ej2.min.js:10)

    at e.findTargetUnderMouse (ej2.min.js:10)

    at t.findTargetObjectUnderMouse (ej2.min.js:10)

    at e.getMouseEventArgs (ej2.min.js:10)

    at e.mouseMove (ej2.min.js:10)

e.findObjectUnderMouse @ ej2.min.js:10

e.findTargetUnderMouse @ ej2.min.js:10

t.findTargetObjectUnderMouse @ ej2.min.js:10

e.getMouseEventArgs @ ej2.min.js:10

e.mouseMove @ ej2.min.js:10

Do you know why and how I can resolve this error?

Regards,

Laurent


1 Reply

AR Aravind Ravi Syncfusion Team January 10, 2022 09:22 AM UTC

Hi Laurent, 

We have created a sample for two nodes and connector without connecting to shapes. When we drag the source end or target end of the connector and mouse over on the node, we did not face any exception in the diagram. We are unable to reproduce the reported issue at our end. We have attached a video demonstration of how we drag the connector end and drag over the node and sample in the below link 



So please look at a video and sample and confirm us whether we tried to reproduce the issue in same way that you tried at your end. If no, then please share us a video demonstration of issue and modify the above sample illustrating issue with issue replication steps. This would help us to serve you better. 

Regards 
Aravind Ravi 


Loader.
Up arrow icon