Commit 4d67e117 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'ph/fixTodoMetaClickLink' into 'master'

Fixes todo meta click on project name not working

See merge request gitlab-org/gitlab!51327
parents c552e6da b3ec5575
......@@ -154,7 +154,7 @@ export default class Todos {
goToTodoUrl(e) {
const todoLink = this.dataset.url;
if (!todoLink || e.target.tagName === 'A' || e.target.tagName === 'IMG') {
if (!todoLink || e.target.closest('a')) {
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment