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

fix: check for linkElement on external links #36

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

danryland
Copy link
Contributor

@danryland danryland commented Jul 16, 2024

Fixes: #35

External links, when wrapped around images, don't work. External links that are just text work. This is because the check for ev.target.href doesn't have an href because the element in question is the img. Any element wrapped in an a tag should still work. See issue for screenshots.

Added check for closest a tag.

@davehakkens davehakkens merged commit d6552ce into ONEARMY:master Jul 17, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

bug: external link wrapped around element not working
2 participants