Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bartoszwanot opened this issue Dec 6, 2022 · 3 comments
Closed

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

bartoszwanot opened this issue Dec 6, 2022 · 3 comments

Comments

@bartoszwanot
Copy link

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
Copy link
Owner

sal0max commented Dec 6, 2022

Definitely happening inside the miromannino/Justified-Gallery dependency.
Seems to be this bug: miromannino/Justified-Gallery#333

Sorry I can't help any further.

@bartoszwanot
Copy link
Author

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
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants