Skip to content

Commit cc1db01

Browse files
authored
Merge pull request #110 from ziayanj/fix/hide-cursor
fix: do not hide cursor when hideCursorWhenDone prop is false
2 parents c579cf4 + 28fc414 commit cc1db01

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)