You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a web app with Rails 4 and Turbolinks, https://github.com/rails/turbolinks. Now I've started to add more Polymer elements to the app. But I can't get paper-drawer-panel to work.
When loading the page the first time everything looks and behaves as expected. But when clicking a link the problem starts. I made a video of the problem. https://www.youtube.com/watch?v=Zqtn9uxI1xs
It seems like the paper-drawer-panel isn't populated with the content after changing page with Turbolinks. I don't think this is a problem with Turbolinks, but more a result of how it works and how paper-drawer-panel works.
I don't really understand how paper-drawer-panel works and load it's content. Therefore I haven't been able to figure out a solution.
Could it be a similar solution to get paper-drawer-panel to work with Turbolinks? All help is appreciated. I really need this one to work in our app, and disabling Turbolinks isn't an option.
@nonameolsson I don't see how paper-drawer-panel could be causing the issue. It seems like the whole page is refreshed after you clicked the link. You might want to call preventDefault on the click event. e.g.
I have a web app with Rails 4 and Turbolinks, https://github.com/rails/turbolinks. Now I've started to add more Polymer elements to the app. But I can't get
paper-drawer-panel
to work.When loading the page the first time everything looks and behaves as expected. But when clicking a link the problem starts. I made a video of the problem.
https://www.youtube.com/watch?v=Zqtn9uxI1xs
It seems like the
paper-drawer-panel
isn't populated with the content after changing page with Turbolinks. I don't think this is a problem with Turbolinks, but more a result of how it works and howpaper-drawer-panel
works.I don't really understand how paper-drawer-panel works and load it's content. Therefore I haven't been able to figure out a solution.
But a while ago I had the same problem with
jquery.mmenu
and Turbolinks.Problem: https://github.com/BeSite/jQuery.mmenu/issues/41
Solution: http://mmenu.frebsite.nl/tutorials/frameworks/turbolinks.html
Could it be a similar solution to get
paper-drawer-panel
to work with Turbolinks? All help is appreciated. I really need this one to work in our app, and disabling Turbolinks isn't an option.UPDATE:
Here is some code.
application.html.haml
layouts/_content.html.haml
The text was updated successfully, but these errors were encountered: