Croppie
Croppie copied to clipboard
Croppie('destroy') doesn't destroy croppie instance
Expected to destroy croppie instance on hidden modal event
body of on hidden modal event is executed wonderfully however $('#demo').croppie('destroy') does not destroy the previous initialized croppie instance
Steps to Reproduce the Problem
Example Link
Please recreate your issue using JSbin, JSFiddle, or Codepen.
- Link: https://jsbin.com/juhoviwuva/edit?html,css,js,console,output
Specifications
- Browser: chrome
- Version: latest
This issue has been reported multiple times. Not sure if anyone is willing to take the time to fix it. That said, you'll find workaround code in this issue:
https://github.com/Foliotek/Croppie/issues/749
Basically, destroying the Croppie container isn't all that complex.