Moveable: Moveable destroy error

Created on 6 Aug 2019  Â·  4Comments  Â·  Source: daybrush/moveable

Hi @daybrush :

I use Moveable on the React framework,I made a mistake when I called destroy times。

I create example in Codesandbox:

https://codesandbox.io/s/moveable-zh8u5?fontsize=14

When i click destroy, to destroy Moveable. i get a error

Uncaught TypeError: Cannot read property 'preactMoveable' of null

Code:
image

Is this the correct release?

bug solved

All 4 comments

@monsterooo

Thank you for reporting bug.
I'll fix it soon.

And on React Framework, you can use React Component
https://github.com/daybrush/moveable/tree/master/packages/react-moveable

@daybrush

Thank you

👾

@monsterooo

moveable 0.6.1 version has been released. If you're using a vanilla version, please update it.

Thank you :)

@daybrush

Thank you for your efforts, The problem has been solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiseopX picture jiseopX  Â·  4Comments

darsodango picture darsodango  Â·  3Comments

scottsquirespix picture scottsquirespix  Â·  5Comments

ladifire picture ladifire  Â·  3Comments

plotpoi picture plotpoi  Â·  4Comments