Error While Trying To Restrict Drawing Empty and Non-port Connections

Hi, 

In the 'collectionChange' event passing 'args.cancel = true;' but the an error is occuring: 


ej2.js:115811 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'isLane')
    at CommandHandler.<anonymous> (ej2.js:115811:54)





Attaching my sample app. Thanks in advance


Attachment: diagram1_83c770e0.zip

5 Replies 1 reply marked as answer

AR Aravind Ravi Syncfusion Team May 16, 2022 12:48 PM UTC

Hi Halit,


We will validate and update you with more details on May 18th, 2022.


Regards

Aravind Ravi



AR Aravind Ravi Syncfusion Team May 19, 2022 01:53 PM UTC

Hi Halit,  

  

Reported Issue: Exception occurs when set argument cancel as true in collectionChange event

    

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 the June 8th, 2022 weekly patch release.  

 

https://www.syncfusion.com/feedback/35040/exception-occurs-when-set-argument-cancel-as-true-in-collectionchange-event 

  

Regards,  

Aravind Ravi



HA Halit replied to Aravind Ravi May 20, 2022 06:42 AM UTC

Hi,

Thank you. But the link says "Access Denied "



AR Aravind Ravi Syncfusion Team May 23, 2022 09:36 AM UTC

Hi Halit,

We have resolved the reported issue. Could you please clear your browser cache and check now?


Regards

Aravind Ravi



AR Aravind Ravi Syncfusion Team June 9, 2022 12:02 PM UTC

Hi Halit,


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.59) packages of diagrams to resolve this issue.       


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


Regards

Aravind Ravi


Marked as answer
Loader.
Up arrow icon