Unverified Commit 4e1cd75f authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix: model parameter stop sequence (#1885)

parent a8ff2e95
...@@ -63,9 +63,14 @@ const ParameterItem: FC<ParameterItemProps> = ({ ...@@ -63,9 +63,14 @@ const ParameterItem: FC<ParameterItemProps> = ({
const handleChange = (v: ParameterValue) => { const handleChange = (v: ParameterValue) => {
setLocalValue(v) setLocalValue(v)
if (!isNullOrUndefined(value) && onChange)
if (onChange) {
if (parameterRule.name === 'stop')
onChange(v)
else if (!isNullOrUndefined(value))
onChange(v) onChange(v)
} }
}
const handleNumberInputChange = (e: React.ChangeEvent<HTMLInputElement>) => { const handleNumberInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
let num = +e.target.value let num = +e.target.value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment