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

Accordion sometimes requires a page refresh #323

Open
hunterboerner opened this issue Jun 22, 2024 · 1 comment
Open

Accordion sometimes requires a page refresh #323

hunterboerner opened this issue Jun 22, 2024 · 1 comment

Comments

@hunterboerner
Copy link

Hi,

I'm using the accordion with js_lib="live_view_js" (for some reason the AlpineJS version was opening the accordions on unrelated events). Sometimes when I navigate to a page with the accordion on it I have to refresh the page before it will allow me to open the accordion. I don't have any other info to debug this. No errors showed up in the console or in the Chrome devtools.

@hunterboerner
Copy link
Author

To clarify: the issue with using Alpine JS is that I have a phx-click even on the page and whenever the server handles that event all of the accordions open up on the next render.

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