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