Skip to content

Commit

Permalink
Merge branch 'master' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
taoeffect committed Jun 5, 2024
2 parents 5e89e6d + 8256b1b commit a83dc7d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/views/containers/chatroom/MessageBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ export default ({
this.$refs.messageAction.$refs.menu.handleTrigger()
},
longPressHandler (e) {
const targetEl = e.target
if (targetEl.matches('a.link[href]')) {
const url = targetEl.getAttribute('href')
const wrappingLinkTag = e.target.closest('a.link[href]')
if (wrappingLinkTag) {
const url = wrappingLinkTag.getAttribute('href')
sbp('okTurtles.events/emit', OPEN_TOUCH_LINK_HELPER, url)
e?.preventDefault()
} else {
this.openMenu()
}
Expand Down

0 comments on commit a83dc7d

Please sign in to comment.