Disable step button if previous action is disabled

This commit is contained in:
Leandro G. Gehlen
2025-05-14 15:04:45 -03:00
parent ae1adefc2f
commit 7c56a4ec70
@@ -151,7 +151,7 @@
type="button"
x-bind:aria-current="getStepIndex(step) === {{ $loop->index }} ? 'step' : null"
x-on:click="step = @js($step->getId())"
x-bind:disabled="! isStepAccessible(@js($step->getId()))"
x-bind:disabled="! isStepAccessible(@js($step->getId())) || @js($previousAction->isDisabled())"
role="step"
class="fi-fo-wizard-header-step-button flex h-full items-center gap-x-4 px-6 py-4 text-start"
>