react-transcript-editor
react-transcript-editor copied to clipboard
Fix for issue #247 "unexpected scroll behavior"
Is your Pull Request request related to another issue in this repository ?
Yes, issue #247
Describe what the PR does
This PR removes a call to setState inside the time text editor component's updateTimestampsForEditorState method because it causes the scroll bug in the issue linked above. In testing, we did not find any adverse effects of removing the call to setState.
State whether the PR is ready for review or whether it needs extra work
Ready!
Additional context
Below is a screen recording of the fix to compare with the screen recording of the bug in the issue linked above.
Thanks @shea12 for the PR :)