From 1cefaa8446a45273f95649844fa0172221ecee38 Mon Sep 17 00:00:00 2001 From: taehoon Date: Tue, 23 Jul 2019 20:59:37 -0400 Subject: [PATCH] closest can returns itself as well --- src/components/status/status.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 7f7c8f1e..3c172e5b 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -322,8 +322,7 @@ const Status = { this.error = undefined }, linkClicked (event) { - let { target } = event - target = target.tagName === 'A' ? target : target.closest('.status-content a') + const target = event.target.closest('.status-content a') if (target) { if (target.className.match(/mention/)) { const href = target.href