Diagram element gets deselected when trying to edit the properties

Can anyone help me explain why my selected elements in the diagram gets deselected automatically when I try to edit the properties of the selected element?

Please see the attached screenshot for reference.
Left side is my diagram with custom palette icons and right side is the properties panel.
When I try to edit the right side the left side diagram gets deselected hence the right side properties field changes as well.

It would be really appreciated if anyone could give me a hint of what might be causing this issue.
Thanks in advance.
Screen Shot 2020-12-23 at 19.20.13

Hi Bil, welcome to the Forum!

Could you write down step by step how this behavior occurred?
Also, it would be very helpful if you could share a CodeSandbox that reproduces your issue in a way that we can inspect it.