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

The effect looks like this:

This is the error from the demo site:

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):
The effect looks like this:

This is the error from the demo site: