-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDL drawer toggle button dissappeared on turbolinks page change #10
Comments
Hello, Calling But thanks for bringing attention to this subject, this is definetly a major use case for developers using this gem and I will add a note in |
Great point. I shouldn't have thrown my quick hack in a pull request. I've never made a gem before so I'm not sure how you would perform an "if using turbolinks then do..." |
It would be good to add your change to the docs. On Jul 29, 2016 9:46 PM, "John" notifications@github.com wrote:
|
Now Let me know, please, if it should be reworded better or anything is missing. |
My site has a navigation drawer that has a drawer toggle button in the top left. Code: https://getmdl.io/components/index.html#layout-section/layout
Every time I followed a link the button to toggle the drawer would disappear. MDL is adding the button using JS on page load. When turbolinks changed pages, MDL wasn't recognizing the page change and adding the button back in.
As a quick fix you can add the following code to your project JavaScript.
I forked the project and added the above lines of code to material.js. Using the forked changes, users won't have to add the code to their projects.
The text was updated successfully, but these errors were encountered: