diff --git a/src/components/containers/inspector/subtypes/ParameterSubtypes.tsx b/src/components/containers/inspector/subtypes/ParameterSubtypes.tsx index c9acca2..98b876a 100644 --- a/src/components/containers/inspector/subtypes/ParameterSubtypes.tsx +++ b/src/components/containers/inspector/subtypes/ParameterSubtypes.tsx @@ -75,7 +75,7 @@ const parameterSubtypes: ParameterTypes = { className="w-full h-full p-1" defaultValue={props.item} placeholder="Enum Value Option" - onBlur={(e) => { + onChange={(e) => { props.setValue(e.target.value); }} /> diff --git a/src/components/menus/stage/StagedFilterMenu.tsx b/src/components/menus/stage/StagedFilterMenu.tsx index 0a4807b..05f30fd 100644 --- a/src/components/menus/stage/StagedFilterMenu.tsx +++ b/src/components/menus/stage/StagedFilterMenu.tsx @@ -25,7 +25,7 @@ const FilterItem = ({ item, setValue }: ListItemChildProps) => { className="w-full h-full p-1" defaultValue={item} placeholder={'Filter string or regex'} - onBlur={(e) => { + onChange={(e) => { setValue(e.target.value); }} /> diff --git a/src/components/menus/stage/StagedJobMenu.tsx b/src/components/menus/stage/StagedJobMenu.tsx index aa25b1d..81242f5 100644 --- a/src/components/menus/stage/StagedJobMenu.tsx +++ b/src/components/menus/stage/StagedJobMenu.tsx @@ -35,7 +35,7 @@ const ContextItem = ({ item, setValue }: ListItemChildProps) => { className="w-full h-full p-1" defaultValue={item} placeholder={'Context name'} - onBlur={(e) => { + onChange={(e) => { setValue(e.target.value); }} /> @@ -136,7 +136,8 @@ const StagedJobMenu = ({ source, values, id }: WorkflowJobMenuProps) => { ...parameters, context: context && context.length > 0 ? context : undefined, matrix: - parameters.matrix?.parameters && Object.keys(matrix.parameters).length > 0 + parameters.matrix?.parameters && + Object.keys(matrix.parameters).length > 0 ? matrix : undefined, };