Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-if doesnt seem to work on the first element #3

Open
xtfer opened this issue Aug 17, 2022 · 0 comments
Open

x-if doesnt seem to work on the first element #3

xtfer opened this issue Aug 17, 2022 · 0 comments

Comments

@xtfer
Copy link

xtfer commented Aug 17, 2022

The following should only show the third step, but always shows the first step. The second step is skipped.

        <div x-data="{ errors: true }">

            <div x-wizard:step x-wizard:if="errors == false">
                First
                <x-buttons.standard-a @click="$wizard.forward()"
                                      ::disabled="$wizard.cannotGoForward()"
                                      x-show="$wizard.isNotLast()">Confirm & continue...</x-buttons.standard-a>
            </div>

            <div x-wizard:step x-wizard:if="errors == false">
                Second
                <x-buttons.standard-a @click="$wizard.forward()"
                                      ::disabled="$wizard.cannotGoForward()"
                                      x-show="$wizard.isNotLast()">Confirm & continue...</x-buttons.standard-a>
            </div>

            <div x-wizard:step>
                Third
            </div>
        </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant