When moving node, selection sometimes not updating

Hi!

I use the <SfDiagramComponent> with a custom node template. Sometimes when I drag a node, the selection does not follow along. In the image below, I dragged the node to bottom left, but the selection is still in the top right. When deselecting and trying to select the node again, I can only select the old invisible one. No exceptions are thrown in the code, so I don't see what could be wrong. How do I make sure this doesn't happen? 

Skärmbild 2023-11-27 111715.png


1 Reply

SU Sumathi Uthayakumar Syncfusion Team November 28, 2023 11:00 AM UTC

Hi Andreas,


We have tried to reproduce the reported issue in a simple sample. We have rendered a simple HTML node and applied a margin to the outer div. At that time, we encountered the reported issue. We suspect that you have also applied a margin to the outer div element, which may be the cause of the issue.


In our source code, when the HTML node is rendered, the selector is updated based on the node's height and width. If you are experiencing a position issue related to the selector, you may need to adjust the height and width of the node. We have shared the sample that we tried on our end, and the selector is updated properly for the node.


If you are still experiencing the issue, could you please share a code snippet or modify the shared sample to replicate the reported issue? These details will help us provide a better solution for you.



Sample link: https://blazorplayground.syncfusion.com/rZLqWsLvAGrwoHpu




Regards,

Sumathi U.


Loader.
Up arrow icon