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

Console Error on demo site #5

Open
lym8356 opened this issue Jun 6, 2023 · 2 comments
Open

Console Error on demo site #5

lym8356 opened this issue Jun 6, 2023 · 2 comments

Comments

@lym8356
Copy link

lym8356 commented Jun 6, 2023

On the demo site, if I uncheck the show thumbnails option, it will immediately trigger a console error:
Cannot read properties of null (reading 'handleResizeHeight'

Then you cannot navigate left and right or select any picture to view, even though you check the box again.

I am using this library in my project differently, this component will only shows when user clicks on the image (rendered by other library)
The same error appears whenever I dismiss the overlay (see the example below):

image

The effect looks like this:
image

This is the error from the demo site:

image

@ohbob
Copy link

ohbob commented Oct 29, 2023

still relevant

@CalebPena
Copy link

Work around:

On each of the images add thumbnailClass: 'image-gallery-thumbnail'

Then add to your styles

:global(.image-gallery-thumbnail) {
	display: none;
}

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

3 participants