Open jaichandra opened 7 years ago
All works perfectly:
Because of shadow DOM nature, you have to put everything you need into a Polymer component and initialize it:
Close issue, @robdodson
I should have probably referred this to the below issue. Please refer to comment here: https://github.com/PolymerElements/paper-checkbox/issues/151#issuecomment-246578215
Description
paper-radio-button and paper-checkbox fails to render properly when transitioning between routes (navigate between 'index' and 'about' routes). Initially the components render fine, but after transitioning to another route and coming back, the components are broken. Here's the working example where you can see the issue. http://codepen.io/jaichandra/pen/jrOpab?editors=1010
I am raising this issue here because paper-button and paper-input are working fine. Also, if I switch to Shadow DOM, the components work.
If you look at the rendered paper-radio-button dom, it get re-rendered inside one of its own nodes (after route transition), causing it to render two radio-buttons and break. Same is the case with paper-checkbox.
Expected outcome
paper-radio-button should render correctly
Actual outcome
paper-radio-button ui breaks after transitioning between 'index' and 'about' routes
Live Demo
http://codepen.io/jaichandra/pen/jrOpab?editors=1010
Steps to reproduce
In the above example,
Browsers Affected