Please someone confirm this issue with Blaze render and Polymer 1.0 elements
Same goes to paper-button and paper-material inside of it.
I have to remove paper-material inside button ( no shadows ) to make it work.
[GITHUB: PolymerTest with iron:router, 2 pages with paper-drawer-panel][1]
[1]: https://github.com/tdesc/PolymerTest.git
First time page rendered, it calls logged as
Template.name.rendered
paper-drawer-panel created
paper-drawer-panel ready
paper-drawer-panel attached
Using Route.go() to switch page, we got wrong order:
paper-drawer-panel created
paper-drawer-panel ready
paper-drawer-panel attached
Template.name.rendered
Polymer calls create/ready/attached in process of Blaze._materializeDOM and Template is not yet rendered, so <content>
not found. And after paper-drawer-panel attached to DOM, Template content added on same level of DOM.
Blaze.Polymer.created (paper-drawer-panel.html:374)
Polymer.Base._addFeature._invokeBehavior (polymer-micro.html:283)
Polymer.Base._addFeature._doBehavior (polymer-micro.html:278)
Polymer.Base.createdCallback (polymer-micro.html:108)
materializeTag (materializer.js:99)
materializeDOMInner (materializer.js:54)
Blaze._materializeDOM (materializer.js:33)
doMaterialize (view.js:343)
Tracker.nonreactive (tracker.js:560)
doRender (view.js:341)
(anonymous function) (view.js:191)
Template._withTemplateInstanceFunc (template.js:437)
(anonymous function) (view.js:190)
Blaze._withCurrentView (view.js:523)
DynamicTemplate:materialize (view.js:189)
Tracker.Computation._compute (tracker.js:294)
Tracker.Computation._recompute (tracker.js:313)
Tracker._runFlush (tracker.js:452)
onGlobalMessage (setimmediate.js:102)