-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Version
0.4.1
Steps to reproduce
- set typing prop to 1
- set interval to toggle typing prop between 1 and -1
Expected behavior
What should happen
the direction of typing / deleting should alternate
Actual behavior
What is happening
the setInterval function inside of typewriter are not being cleared and are racing/conflicting, causing erratic behavior
I was able to resolve by adding clearTimeout(this._timeoutId) inside of typewriter's componentWillRecieveProps.
Metadata
Metadata
Assignees
Labels
No labels