Skip to content

Commit 28fc414

Browse files
committed
fix: fix cursor being hidden when hideCursorWhenDone prop is false
1 parent c579cf4 commit 28fc414

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const Main = ({
112112
}
113113
}
114114
onTypingDone?.();
115-
setShowCursor(false);
115+
if (hideCursorWhenDoneRef.current) setShowCursor(false);
116116
if (finishDelay > 0) await timeoutPromise(finishDelay);
117117
if (!loopRef.current) await loopPromise();
118118
} while (loopRef.current);

0 commit comments

Comments
 (0)