Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.58k stars 884 forks source link

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

Open hammas77 opened 3 years ago

hammas77 commented 3 years ago

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

1. 1. 1.

Example Link

Please recreate your issue using JSbin, JSFiddle, or Codepen.

Specifications

bret-miller commented 3 years ago

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.