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 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-29 20:29:26 +02:00
parent fb6bffd7ee
commit 0113367d05

View File

@@ -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();
}
/**