Closed treble-maker123 closed 7 years ago
I don't quite understand what the $("button-collapse").sideNav()
or $(".dropdown-button").dropdown()
does, but if I add onclick="init_materialize();"
to an element, the sidenav and dropdown start working again after I click said element.
Finally got it working! For anyone else running into this issue with Rails, adding jquery-turbolinks gem did the trick.
I have
The dropdowns and sidenavs work fine when I first land on the site. But when I'm moving to another page on the site, they don't seem to work anymore.
I've tried things like
or
<body onload="init_materialize();">
as work-around, but neither seem to be working.
Any ideas?