closest can returns itself as well
This commit is contained in:
parent
17ad5bbdf9
commit
1cefaa8446
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user