Skip to content

Check element is link before return#68

Open
mattheu wants to merge 1 commit intoAutomattic:developfrom
mattheu:fix-ie-image-bug
Open

Check element is link before return#68
mattheu wants to merge 1 commit intoAutomattic:developfrom
mattheu:fix-ie-image-bug

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.

@GaryJones GaryJones changed the base branch from main to develop November 5, 2025 18:30
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.

1 participant