From c6787aae3f7093ece8adbf49b73b5cd856db938a Mon Sep 17 00:00:00 2001 From: lazzzis Date: Tue, 2 Apr 2024 21:17:30 -0700 Subject: [PATCH] fix(ui): clicking on custom emoji does not navigate to status detail (#2743) --- components/status/StatusLink.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/status/StatusLink.vue b/components/status/StatusLink.vue index 88d5a47d..302d2348 100644 --- a/components/status/StatusLink.vue +++ b/components/status/StatusLink.vue @@ -14,7 +14,8 @@ function onclick(evt: MouseEvent | KeyboardEvent) { const path = evt.composedPath() as HTMLElement[] const el = path.find(el => ['A', 'BUTTON', 'IMG', 'VIDEO'].includes(el.tagName?.toUpperCase())) const text = window.getSelection()?.toString() - if (!el && !text) + const isCustomEmoji = el?.parentElement?.classList.contains('custom-emoji') + if ((!el && !text) || isCustomEmoji) go(evt) }