Commit b3ec5575 authored by Phil Hughes's avatar Phil Hughes

Fixes todo meta click on project name not working

Fixes a bug where cmd+click on the project link on a todo
row would not open the project in a new tab, instead it would
open the merge request in a new tab.
parent 6aa563ee
...@@ -154,7 +154,7 @@ export default class Todos { ...@@ -154,7 +154,7 @@ export default class Todos {
goToTodoUrl(e) { goToTodoUrl(e) {
const todoLink = this.dataset.url; const todoLink = this.dataset.url;
if (!todoLink || e.target.tagName === 'A' || e.target.tagName === 'IMG') { if (!todoLink || e.target.closest('a')) {
return; 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