Skip to content

Commit 8ab3fc8

Browse files
committed
allow jumping to any loop wizard step
1 parent cdfaef1 commit 8ab3fc8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/ui/src/features/loops/components/LoopForm.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,8 @@ function Stepper({
370370
{STEPS.map((label, index) => {
371371
const isCurrent = index === current;
372372
const isDone = index < current && complete[index];
373-
// Free navigation back to any earlier step; forward only into the step
374-
// immediately after a completed one, so you can't skip required fields.
375-
const reachable = index <= current || complete[index - 1];
373+
// Steps navigate freely in both directions; skipping ahead is safe
374+
// because Next stays gated per step and Create on the whole form.
376375
return (
377376
<Flex
378377
key={label}
@@ -381,9 +380,8 @@ function Stepper({
381380
>
382381
<button
383382
type="button"
384-
disabled={!reachable}
385383
onClick={() => onSelect(index)}
386-
className="flex min-w-0 items-center gap-2 disabled:cursor-not-allowed"
384+
className="flex min-w-0 cursor-pointer items-center gap-2"
387385
>
388386
<Flex
389387
align="center"

0 commit comments

Comments
 (0)