Make sure number respects initial value

This commit is contained in:
Kurt Hutten
2021-08-27 20:21:43 +10:00
parent cdbf6ed6b4
commit 431cd2e867

View File

@@ -270,7 +270,7 @@ function NumberParam({
onChange: (value: any) => void
}) {
const [isFocused, isFocusedSetter] = React.useState(false)
const [localValue, localValueSetter] = React.useState(0)
const [localValue, localValueSetter] = React.useState(value)
const [isLocked, isLockedSetter] = React.useState(false)
const [pixelsDragged, pixelsDraggedSetter] = React.useState(0)
const step = param.step || 1