From 0113367d05f53596d45e936987a29684cc74c7ee Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 29 Apr 2026 20:29:26 +0200 Subject: [PATCH] refactor(TranscriptionReadView): remove dead else branch in handleMentionLeave Only mouseleave is wired in attachMentionHandlers so the else branch could never fire. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/TranscriptionReadView.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/lib/components/TranscriptionReadView.svelte b/frontend/src/lib/components/TranscriptionReadView.svelte index ca0b59df..e713ee8a 100644 --- a/frontend/src/lib/components/TranscriptionReadView.svelte +++ b/frontend/src/lib/components/TranscriptionReadView.svelte @@ -155,11 +155,7 @@ async function handleMentionEnter(event: Event) { function handleMentionLeave(event: Event) { const link = event.target as HTMLAnchorElement; link.removeAttribute('aria-describedby'); - if (event.type === 'mouseleave') { - scheduleCardClose(); - } else { - activeCard = null; - } + scheduleCardClose(); } /**