Commit 09efcb48 authored by Tae Hoon's avatar Tae Hoon

try to use the closest a tag as target

parent e4489500
......@@ -323,10 +323,8 @@ const Status = {
},
linkClicked (event) {
let { target } = event
if (target.tagName === 'SPAN') {
target = target.parentNode
}
if (target.tagName === 'A') {
target = target.tagName === 'A' ? target : target.closest('a')
if (target) {
if (target.className.match(/mention/)) {
const href = target.href
const attn = this.status.attentions.find(attn => mentionMatchesUrl(attn, 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