-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Upgrade problem in dynamically created elements #1498
Conversation
…f child elements created by parent element's upgrade, like RippleContainerElement in Checkbox. The problem was happening when the element was created dynamically.
Hey @dopic! Thanks for coming up with an implementation straight away. Before I take a closer look: I was under the impression that the scenario you are describing was working with our implementation. Could you do us a favor whip up a CodePen showing a setup where creating an element dynamically wasn’t working as expected? |
Hi @surma ! Thanks for the reply! Sure, here is the link: http://codepen.io/dopic/pen/rOBPXo |
@dopic Thank you! This is something that should be working, but obviously isn’t 😄 Looping in @Garbee and @jasonmayes to take a look at your code |
I'll take a closer look Monday when I have time. Weary about changing this
|
I'd say go ahead and merge. If someone coded a workaround to this then, sorry it may break. But it is a genuine bug-fix here. |
Thanks, @Garbee! Merging. |
Upgrade problem in dynamically created elements
Cherry-picked to commit to |
Change in the function upgradeElementsInternal to enable the upgrade of child elements created by parent element's upgrade, like RippleContainerElement in Checkbox. The problem was happening when the element was created dynamically.