From ebbc961d7aa9879c3795e8596f763287e860b8cc Mon Sep 17 00:00:00 2001 From: Colin Duffy Date: Thu, 4 May 2023 13:39:25 -0700 Subject: [PATCH] fix(CurveEditor): error when copy/pasting eases --- .../KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx index cc9222f..3c976b6 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx @@ -173,7 +173,8 @@ const CurveEditorPopover: React.VFC = (props) => { cssCubicBezierArgsFromHandles(easing), ) - const onInputChange = (e: React.ChangeEvent) => { + const onInputChange = (e?: React.ChangeEvent) => { + if (e === undefined) return setTextInputMode(TextInputMode.user) setInputValue(e.target.value)