Materialize CSS side-nav not working

前端 未结 1 1895
隐瞒了意图╮
隐瞒了意图╮ 2021-02-08 08:21

I have a basic setup of Materialize running and everything seems to be fine, except for the slide out side-nav.

Here\'s my code. Menu:

1条回答
  •  再見小時候
    2021-02-08 08:46

    I found a solution. I grabbed the init hack from Materialize: http://materializecss.com/templates/starter-template/js/init.js and then made sure it was last called in my JS. (Putting it before the rest of the JS causes it to fail.)

    0 讨论(0)
提交回复
热议问题