Setting `show_small_image` to False breaks LazyImage for the whole page
danielsamuels opened this issue · 2 comments
danielsamuels commented
Disabling show_small_image
results in the small image element not being output, as expected:
However, the JS will still try and remove this element, regardless of whether it exists or not:
django-lazy-image/assets/js/lazy-image.js
Lines 15 to 17 in a4b1f78
I think the above condition just needs to be changed to this:
if (evt.propertyName === 'opacity' && this.smallImage) {
dan-gamble commented
Had to recently do this on CSP. Will fix it now 👍
dan-gamble commented
This is live under 0.3.2
now. (Pypi and npm)