Add input selection on curve change (#158)

This commit is contained in:
Elliot 2022-05-13 13:18:00 -04:00 committed by GitHub
parent cd9d03076b
commit bd110ed01a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,6 +214,8 @@ const CurveEditorPopover: React.FC<IProps> = (props) => {
const value = cssCubicBezierArgsFromHandles(newHandles)
setInputValue(value)
setEdit(value)
inputRef.current?.select()
inputRef.current?.focus()
}
const onCancelCurveChange = () => {}