Commit 1cefaa84 authored by Tae Hoon's avatar Tae Hoon

closest can returns itself as well

parent 17ad5bbd
......@@ -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
......
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