forked from AkkomaGang/akkoma-fe
closest can returns itself as well
This commit is contained in:
parent
17ad5bbdf9
commit
1cefaa8446
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue