Skip to content

Commit 9b25c36

Browse files
committed
Visible chars are now a parameter in onTyped
1 parent f479f34 commit 9b25c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TypeWriter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class TypeWriter extends React.Component {
5656
nextToken = componentTokenAt(this, this.state.visibleChars);
5757

5858
if (token && onTyped) {
59-
onTyped(token);
59+
onTyped(token, prevState.visibleChars);
6060
}
6161

6262
// check the delay map for additional delays at the index.

0 commit comments

Comments
 (0)