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

Check element is link before return #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mattheu
Copy link
Contributor

@mattheu mattheu commented Sep 4, 2015

On IE11, you cannot select an item by clicking on the actual thumbnail image in the explorer. It works fine if you click the title, or the area around the image.

I think this problem is caused by a quirk in IE, where event.target.href returns the image src. As you are checking this isn't empty befor toggling the selection, this breaks on IE.

A simple fix is to check that the event target with an href is also a link element.

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.

None yet

1 participant