konvajs/react-konva-utils

Draggable Dom not working post react-konva-utils 0.1.5

Closed this issue · 5 comments

Hi,
I'm using this demo to make a draggable html element:
https://codesandbox.io/s/react-konva-utils-draggable-dom-jolg8?file=/package.json:236-253
When using the latest react-konva-utils version (0.2.0) it does not work. I checked and it seems that the regression happens with any version after (not including) 0.1.5

It needs the last Konva version. With it, it will work as expected.
https://codesandbox.io/s/react-konva-utils-draggable-dom-jolg8?file=/package.json

Oh I see, I'm using 7.2.5 due to esm limitations in my environment (electron)
Thanks!

It doesn't work because of this line: c294c60#diff-5e0a9e5ceabc1c264bd177f1f34c5c0753caba030f6da1938e3a3659a19e56e3L73

Event in konva@8 was changed. Probably we can support both.

Why konva@8 is an issue for you, if react-konva-utils is already just ES module. If it works for you, Konva should work too.

Interesting, react-konva-utils does work for me, but when I try to use konva@8 I get unexpected token error from konva.
With 7.2.5 it works without problems. Any idea what could be wrong?

🤷‍♂️ no idea. I don't know how electron importing are working. Probably you have to dive-in into the issue, if you are interested.