Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

My event listener dont work #1658

Closed
Geptor opened this issue Oct 3, 2017 · 1 comment
Closed

My event listener dont work #1658

Geptor opened this issue Oct 3, 2017 · 1 comment

Comments

@Geptor
Copy link

Geptor commented Oct 3, 2017

<a href="image.png" class="myclick" data-fancybox></a>
$("body").on("click", ".myclick", function() { console.log("test"); }) its not work

if comment "e.stopPropagation();" in function "_run", its work

@fancyapps
Copy link
Owner

Hi,

Thanks, it really does not seem to be necessary and will be removed in the next commit.

fancyapps added a commit that referenced this issue Oct 3, 2017
- Enable custom click events on fancyboxed elements
- Enable thumbs.autoStart using `data-options`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants