Foliotek/Croppie

Croppie('destroy') doesn't destroy croppie instance

hammas77 opened this issue · 1 comments

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.

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:

#749

Basically, destroying the Croppie container isn't all that complex.