From 6c4e697d228c46b4e0404584262e4fce8220f5f5 Mon Sep 17 00:00:00 2001 From: Caroline Shea Date: Fri, 23 Oct 2020 11:31:13 -0500 Subject: [PATCH] remove unnecessary call to setState inside updateTimestampsForEditorState to fix scroll bug --- packages/components/timed-text-editor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/timed-text-editor/index.js b/packages/components/timed-text-editor/index.js index 7d43384a..2ec17d81 100644 --- a/packages/components/timed-text-editor/index.js +++ b/packages/components/timed-text-editor/index.js @@ -154,7 +154,7 @@ class TimedTextEditor extends React.Component { newEditorState, selection ); - this.setState({ editorState: newEditorStateSelected }); + return newEditorStateSelected; } else { this.setState({ editorState: newEditorState });