aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-07-23 20:59:37 -0400
committertaehoon <th.dev91@gmail.com>2019-07-23 20:59:37 -0400
commit1cefaa8446a45273f95649844fa0172221ecee38 (patch)
tree6a80d2dbc11d090ed08f77f382369e5d2dc1cca8 /src
parent17ad5bbdf9cfa108164a128921742828182f03b6 (diff)
closest can returns itself as well
Diffstat (limited to 'src')
-rw-r--r--src/components/status/status.js3
1 files changed, 1 insertions, 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