scottcheng / cropit

A "customizable crop and zoom" jQuery plugin.
http://scottcheng.github.io/cropit/
MIT License
874 stars 305 forks source link

'onImageError' not working in new release (v0.5) #176

Closed bloxidge closed 8 years ago

bloxidge commented 8 years ago

Hi,

Previously, I was using the onImageError method successfully to bring up the .has-error message as shown in the demo web page. See issue 141 here. Since the update, this has no longer been working. I have definitely changed any code with the class cropit-image-preview-container to cropit-preview but i fear that by losing the surrounding div, the image error message no longer works.

I have also noticed that the error message now no longer appears on your own demo code on the website which may indicate the nature of this bug. Please tell me how to fix ASAP.

Thanks

bloxidge commented 8 years ago

RESOLVED!

Error message is simply hidden, solved by adding z-index: 1 to the CSS for .cropit-preview .error-msg

This fix should work on the demo website as well @scottcheng :)