Skip to content

Commit 252ffe5

Browse files
DanielJDufourspwoodcock
authored andcommitted
bug fix: recompute final step when number of steps change
1 parent 87e4baa commit 252ffe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web-forms/src/components/QuestionStepper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const steps = computed(() =>
6060
6161
// Handle stepper state
6262
const firstStep = 0;
63-
const finalStep = steps.value.length;
63+
const finalStep = computed(() => steps.value.length - 1);
6464
const currentStep = ref(firstStep);
6565
const submitPressed = ref(false);
6666
provide('submitPressed', submitPressed);

0 commit comments

Comments
 (0)