Commit 1aff95c7 authored by Phil Hughes's avatar Phil Hughes

Fix issue when clicking links inside issue showing sidebar

parent 0c286d54
......@@ -61,7 +61,11 @@
this.showDetail = false;
}
},
showIssue () {
showIssue (e) {
const targetTagName = e.target.tagName.toLowerCase();
if (targetTagName === 'a' || targetTagName === 'button') return;
if (this.showDetail) {
this.showDetail = false;
......
......@@ -11,7 +11,7 @@
":index" => "index",
"@mousedown" => "mouseDown",
"@mouseMove" => "mouseMove",
"@mouseup" => "showIssue" }
"@mouseup" => "showIssue($event)" }
%h4.card-title
= icon("eye-slash", class: "confidential-icon", "v-if" => "issue.confidential")
%a{ ":href" => "issueLinkBase + '/' + issue.id",
......
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