Skip to content

Action options don't appear to be respectedΒ #1447

@camin-mccluskey

Description

@camin-mccluskey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions