Exiting fullscreen mode doesn't completely close the overlay
Sotiris-k opened this issue · 2 comments
Sotiris-k commented
Hello,
Chocolat(document.querySelectorAll('.chocolat-image'), {fullScreen: true})
I'm initializing Chocolat like shown above and I'm noticing that exiting fullscreen mode directs me into a still open overlay.
nicolas-t commented
Hello,
You mean that when you exit the fullscreen mode it exits the fullscreen mode, but doesn't close chocolat totally ?
If yes, It's the expected behaviour.
You can add a listener on the fullscreenchange event and use chocolat's API to close the lightbox:
https://chocolat.gitbook.io/chocolat/api#close
Next time you open an issue on github consider saying hello.
Sotiris-k commented
Next time you open an issue on github consider saying hello.
Done.