react-photoswipe-gallery icon indicating copy to clipboard operation
react-photoswipe-gallery copied to clipboard

Action options don't appear to be respected

Open camin-mccluskey opened this issue 5 months ago • 1 comments

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:

  1. Pass any action option (e.g. bgClickOutside: 'close') to Gallery component
  2. Open gallery image
  3. 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

camin-mccluskey avatar Sep 05 '24 19:09 camin-mccluskey