I am trying to figure out a way to detach the Konva.js transformer from my image.
I have successfully created and attached the transformer to the images using a "mouseover" event, but I can't figure out how to detach the transformer with my "mouseout" event once transformation is done. Most documentation and examples that I am finding suggest using the tr.detach() method, which I have tried with no success.
Can anyone suggest an alternate method or take a look at my code and let me know what I am missing?
Here is a link to a demo so that you can take a look at the code and see the issue that I am having: https://codesandbox.io/s/intelligent-cohen-2f38i?file=/index.html