Prompt user for parameter values before running blocks in debugger (#SKY-6097) (#4668)

This commit is contained in:
Celal Zamanoglu
2026-02-09 20:42:57 +03:00
committed by GitHub
parent 94bf5385dc
commit 7e6dfcc6d1
5 changed files with 345 additions and 7 deletions

View File

@@ -47,7 +47,11 @@ function WorkflowParameterInput({ type, value, onChange }: Props) {
return (
<Input
value={value === null ? "" : Number(value)}
onChange={(e) => onChange(parseInt(e.target.value))}
onChange={(e) => {
const val = e.target.value;
// Return null for empty input, otherwise parse as integer
onChange(val === "" ? null : parseInt(val, 10));
}}
type="number"
/>
);
@@ -57,7 +61,11 @@ function WorkflowParameterInput({ type, value, onChange }: Props) {
return (
<Input
value={value === null ? "" : Number(value)}
onChange={(e) => onChange(parseFloat(e.target.value))}
onChange={(e) => {
const val = e.target.value;
// Return null for empty input, otherwise parse as float
onChange(val === "" ? null : parseFloat(val));
}}
type="number"
step="any"
/>