Closed jpwynn closed 7 years ago
After discovering the issue seems to be related to using a fixed top navbar with %div.navbar-fixed, I then found that the mobile side-nav will work correctly if you move the %ul#mobile_side_menu.side-nav outside of the %div.navbar-fixed, so it is no longer a sister node of the top nav %ul#nav-mobile.right.hide-on-med-and-down
In other words, if using HAML, move the side-nav block to be at the same indent level as the %div.navbar-fixed
For my Rails 5 app, the layout below (in HAML) works fine with 0.97.6 of the materialize-sass gem, specifically the mobile side-nav that is displayed when you click the hamburger ison when you make the browser window narrow.
However the exact same code displays a broken mobile side-nav when I upgraded the gem to 0.97.8. Downgrading the gam back to 0.97.6 made it work again.
Symptoms: side nav slides from the left as expected, but the side-nav background is gray (not white) and all of the links on the sidenav seem disabled... no highlighting on hover, nothing happens when click the link.
I went back and forth between gem versions a couple of time with zero other changes, it is definitely the gem version 0.97.8 that breaks it.