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-wizard:step not working inside alpine for loop #6

Open
sanderjongsma opened this issue Sep 14, 2022 · 0 comments
Open

x-wizard:step not working inside alpine for loop #6

sanderjongsma opened this issue Sep 14, 2022 · 0 comments

Comments

@sanderjongsma
Copy link

<template x-for="step in configuratorData.steps">
    <div x-wizard:step>
        <span x-text="step.name"></span>
    </div>
</template>

<div x-wizard:step>
    step outside for loop
</div>

I want to display steps dynamic based on configurator data. But it makes 3 steps but with all the step data in each step. The step outside the loop works fine. I made a gif to make it more clear. In the screenshot is the html output. Am I doing something wrong.

image

wizard

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