Skip to content
New issue

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

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

Already on GitHub? # to your account

fixes #389 #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes #389 #390

wants to merge 1 commit into from

Commits on Jun 3, 2024

  1. fixes miromannino#389

    Upon troubleshooting, it was found that when an image throws an error, this inside the callback refers to the image element and not the JustifiedGallery instance. This causes a TypeError because this.resetImgSrc is not a function in the context of the image element.
    
    To resolve this, I ensured that this correctly refers to the JustifiedGallery instance by using .bind(this) on the callback function.
    saas786 committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    73fb2fc View commit details
    Browse the repository at this point in the history