bubbaspaarx / react-cloudinary-upload-widget

react wrapper for cloudinary upload widget
17 stars 20 forks source link

Bug fix: bug fix for issue #10 Unable to scroll after successful upload #16

Open Ekaji opened 2 years ago

Ekaji commented 2 years ago

The cause of this issue is style="overflow: hidden;" which is added to the body when the widget button is clicked and the iframe created is not removed when the widget.destroy() function is called, to fix this i replaced destroy && widget.destroy() with destroy && widget.destroy().then(() => { document.body.style.removeProperty('overflow'); }); in functions/myWidget.js on lines 77 and lines 84