sal0max / grav-plugin-shortcode-gallery-plusplus

A Shortcode extension to add sweet galleries with a lightbox to your Grav website.
MIT License
33 stars 8 forks source link

Uncaught TypeError: this.resetImgSrc is not a function #38

Closed bartoszwanot closed 1 year ago

bartoszwanot commented 1 year ago

Hi there!

Recently I've got some problems with your plugin on my site with Quark Open Publishing theme.

When I use it, images on page are blank (but I can see captions) and when I click on them - they will show correctly. In Chrome's console I can see such error: Uncaught TypeError: this.resetImgSrc is not a function

You can check how it looks and behave for example here: https://nindyki.pl/dorfromantik-nintendo-switch

Any idea how to fix it?

sal0max commented 1 year ago

Definitely happening inside the miromannino/Justified-Gallery dependency. Seems to be this bug: https://github.com/miromannino/Justified-Gallery/issues/333

Sorry I can't help any further.

bartoszwanot commented 1 year ago

Thanks for the reply @sal0max . But the strangest thing is that it was working like a month or so and now it's broken :/

bartoszwanot commented 1 year ago

Ok, found the solution - in main configuration of Grav CMS in Media tab you need to change value of Image loading behavior to Eager (I had Lazy turned on).