manolo / gwt-polymer-elements

Polymer Web Components for GWT. A collection of Material Design widgets for desktop and mobile.
Apache License 2.0
155 stars 49 forks source link

Inconsistent behaviour when paper drawer panel widget is dynamically initialized #117

Open ancellitto opened 8 years ago

ancellitto commented 8 years ago

The problem occurs when the paper drawer panel widget is removed and new instance is added to the DOM again.I have tried out both the apis(widget api and elemental api) but both shows the same behaviour.Polymer.whenReady() also fails to solve the issue.

On further inspecting the DOM i have noticed that DOM changes when it is reinitialized. Initially the contained widgets are added inside an iron selector beforedynamicinitialization On clicking the button on the header panel,the paper-drawer-panel gets reinitialized.Now the contained widgets are added at the same level as iron selector. afterdynamicinitialization Please check the demo project to reproduce the issue. Demo Project

ancellitto commented 7 years ago

any update on this?