Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action options don't appear to be respected #1447

Open
camin-mccluskey opened this issue Sep 5, 2024 · 1 comment
Open

Action options don't appear to be respected #1447

camin-mccluskey opened this issue Sep 5, 2024 · 1 comment

Comments

@camin-mccluskey
Copy link

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
@akhmadullin
Copy link
Contributor

Hi

What is the option bgClickOutside? Where did you find out about it?

I can't find mention about this option in Photoswipe docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants