demtario / hes-gallery

Light, dependency free, responsive gallery script
https://demtario.github.io/hes-gallery/demo/
MIT License
29 stars 2 forks source link

Background "onclick" not triggering hide. #20

Closed Timothy-Tolley closed 2 years ago

Timothy-Tolley commented 2 years ago

I have an instance of Hes Gallery running and its all working great. However the onclick on the BG container isn't triggering the gallery to close. I have added a separate onclick using the id and an addEventListener but no luck there either. I can see that when I try to see the BG on the DOM, it doesn't highlight the element so wondering if it's a styling issue. Can also see that both onclicks are showing in the event listeners section of the console so they are definitely attached. Any guidance much appreciated.

Timothy-Tolley commented 2 years ago

Ignore me - was some external styling on Shopify that sets Empty blocks to display none -.-