diff --git a/packages/forms/resources/views/components/wizard.blade.php b/packages/forms/resources/views/components/wizard.blade.php index 494d3dc0e1c..48204ea6af4 100644 --- a/packages/forms/resources/views/components/wizard.blade.php +++ b/packages/forms/resources/views/components/wizard.blade.php @@ -264,11 +264,13 @@ class="h-full w-full text-gray-200 dark:text-white/5 rtl:rotate-180" 'mt-6' => ! $isContained, ]) > - isDisabled()) - x-on:click="previousStep" - @endif - x-show="! isFirstStep()"> + isDisabled()) + x-on:click="previousStep" + @endif + x-show="! isFirstStep()" + > {{ $previousAction }} @@ -278,14 +280,12 @@ class="h-full w-full text-gray-200 dark:text-white/5 rtl:rotate-180" isDisabled()) - x-on:click=" - $wire.dispatchFormEvent( - 'wizard::nextStep', - '{{ $statePath }}', - getStepIndex(step), - ) - " + @if (! $nextAction->isDisabled()) + x-on:click="$wire.dispatchFormEvent( + 'wizard::nextStep', + '{{ $statePath }}', + getStepIndex(step), + )" @endif x-show="! isLastStep()" >