diff options
| author | taehoon <th.dev91@gmail.com> | 2019-07-23 20:59:37 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-23 20:59:37 -0400 |
| commit | 1cefaa8446a45273f95649844fa0172221ecee38 (patch) | |
| tree | 6a80d2dbc11d090ed08f77f382369e5d2dc1cca8 /src | |
| parent | 17ad5bbdf9cfa108164a128921742828182f03b6 (diff) | |
closest can returns itself as well
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 3 |
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 |
