Croppie icon indicating copy to clipboard operation
Croppie copied to clipboard

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

Open hammas77 opened this issue 3 years ago • 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.

  • Link: https://jsbin.com/juhoviwuva/edit?html,css,js,console,output

Specifications

  • Browser: chrome
  • Version: latest

hammas77 avatar Apr 19 '21 06:04 hammas77

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.

bret-miller avatar Apr 19 '21 11:04 bret-miller