react-photoswipe-gallery
react-photoswipe-gallery copied to clipboard
Action options don't appear to be respected
Describe the bug
Passing actions in the Gallery options prop do not appear to be respected. Other options (e.g. zoom
) are respected.
To Reproduce Steps to reproduce the behavior:
- Pass any action option (e.g.
bgClickOutside: 'close'
) toGallery
component - Open gallery image
- Click outside will not close the gallery
This is true of all actions. Passing an function as an action - bgClickOutside: (props) => console.log(props)
reveals that the event does not appear to be fired at all.
Expected behavior Photoswipe respects the action option configured.
Desktop (please complete the following information):
- OS: MacOS
- Browser: Arc (Chromium) 1.59.0
- Version: 3.0.2