Skip to content

Commit 60c08b1

Browse files
committed
fix: focus transcript on undefined activity key focus
1 parent 941cc6a commit 60c08b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/component/src/providers/TranscriptFocus/TranscriptFocusComposer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ const TranscriptFocusComposer = ({ children, containerRef }: TranscriptFocusComp
126126
} else if (activityKey) {
127127
setRawFocusedActivityKey(activityKey);
128128
focusByGroupKey(undefined, false);
129+
} else if (activityKey === undefined) {
130+
handleFocus(undefined);
131+
return;
129132
}
130133

131134
const groupKey = typeof activityKey === 'string' && getGroupKeyByActivityKey(activityKey);

0 commit comments

Comments
 (0)