Hello,
I have a very similar problem as described here: Tailwind Javascripts stop working after live redirects between liveviews
Only I don’t use Flowbite.
In my header, I have a toggle button to show/hide menu:
<button id="menu_toggle" class="block md:hidden focus:outline-none">
<.icon name="hero-bars-4" />
</button>
When clicked, this script is called:
<script>
document.getElementById('menu_toggle').addEventListener('click', function() {
var accordionContent = document.getElementById('accordionContent');
accordionContent.classList.toggle('hidden');
});
</script>
It’s working while I stay on an initial page or navigate somewhere by clicking on the menu items. They are href
s, so I believe normal http navigation happens.
But when I click a button on the main screen, which results in push_navigate
call, then it stops working on the new page. If I refresh the page, it starts working again.
I feel it’s a similar issue to the one described in the link above, but the solution there did not help.
Any help is very welcome!