File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
packages/frontend/src/components Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,16 @@ function FlowSubstep(props: FlowSubstepProps): JSX.Element {
135135
136136 const onToggle = expanded ? onCollapse : onExpand
137137
138+ // Skip to the next step if the substep is meant to be hidden
139+ useEffect ( ( ) => {
140+ if ( ! expanded ) {
141+ return
142+ }
143+ if ( ! argsToDisplay || argsToDisplay . length === 0 ) {
144+ onSubmit ( )
145+ }
146+ } , [ argsToDisplay , expanded , onSubmit ] )
147+
138148 if ( ! argsToDisplay || argsToDisplay . length === 0 ) {
139149 return < > </ >
140150 }
Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ export default function InputCreator(props: InputCreatorProps): JSX.Element {
138138
139139 return (
140140 < TextField
141+ defaultValue = { value }
141142 required = { required }
142143 placeholder = { placeholder }
143144 readOnly = { readOnly || disabled }
You can’t perform that action at this time.
0 commit comments