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

Toasts don't seem to work outside of docs page #35

Closed
ikelkar opened this issue Aug 8, 2024 · 2 comments · Fixed by #36
Closed

Toasts don't seem to work outside of docs page #35

ikelkar opened this issue Aug 8, 2024 · 2 comments · Fixed by #36

Comments

@ikelkar
Copy link

ikelkar commented Aug 8, 2024

While the toast seems to work nicely on this page: https://devdojo.com/pines/docs/toast, the playground doesn't seem to work nor does copying the component code

@aligjahed
Copy link

same.

@pixelastronauts
Copy link

Make sure you have a x-data surrounding both the toast component & the buttons. This is indeed missing in the example code, so copying that code doesn't work out of the box.

<div class="relative w-auto h-auto" x-data>
    // Implementation of all buttons & toasts
</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

Successfully merging a pull request may close this issue.

3 participants