mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
806 stars 243 forks source link

Sidenav-overlay active with sidenav-fixed #181

Closed louishugens closed 5 years ago

louishugens commented 5 years ago

Hello guys,

I use the sidenav-fixed class to have a fixed nav in the left of the screen but when i click any link in the nav it only the overlay that is activated. The link is not redirecting to the new page at all. Please help.

Thanks

mkhairi commented 5 years ago

hi @louishugens, you can try see the demo example here.

louishugens commented 5 years ago

Thanks @mkhairi, I have been trying to initialize it with jquery, is there an issue with that?

mkhairi commented 5 years ago

@louishugens, im not sure about that, but they already state in documentation about limitation jquery method

Because jQuery is no longer a dependency, all the methods are called on the plugin instance. jQuery Method Calls You can still use the old jQuery plugin method calls. But you won't be able to access instance properties.

$('.sidenav').sidenav('methodName');
$('.sidenav').sidenav('methodName', paramName);