fix(CurveEditor): error when copy/pasting eases

This commit is contained in:
Colin Duffy 2023-05-04 13:39:25 -07:00 committed by Aria
parent 1cb23c4a16
commit ebbc961d7a

View file

@ -173,7 +173,8 @@ const CurveEditorPopover: React.VFC<ICurveEditorPopoverProps> = (props) => {
cssCubicBezierArgsFromHandles(easing),
)
const onInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const onInputChange = (e?: React.ChangeEvent<HTMLInputElement>) => {
if (e === undefined) return
setTextInputMode(TextInputMode.user)
setInputValue(e.target.value)