Symfony and Hotwire Turbo #859
Unanswered
chrishemmings
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I am not sure if you resolved that problem - but I think it can be relate to this: https://symfonycasts.com/screencast/turbo/modal-preview |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
I've built myself a skeleton Symfony application with CoreUI, which is awesome and looks amazing. I'm currerently leaning on the Symfony UI stack, so, am using AssetMapper and Stimulus controllers to look after everything. The next thing on my list is to switch on Hotwire Turbo to make everything feel a whole lot faster. This is where things have started to fall apart.
So, on my first page load, which uses one of the example templates, everything works as expected. When I navigate to a new page, which Turbo deals with (i.e loads in the content and replaces with the loaded in content) things like menu's and menu collapse buttons stop working.
Is there a way to re-initilise CoreUI so event listeners can re-attach to the replacement body content?
Thanks :-)
Beta Was this translation helpful? Give feedback.
All reactions