-
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
upgradeElement does not apply ripple effect for element created after window.onload #804
Comments
Just assigning a plain bug label until some more effort can be put into this. I'm not sure where the problem is spawning from exactly, looks related to how the Component Handler is dealing with things, but also could be one or the other components directly have a bug in this instance. |
Reviewing the old issue, looks like the ripple component is the core cause. Need to handle failure better. |
I don't think it's ripple's fault, it's just that So, since components do look at class names to determine their behaviour, I think |
+1 |
I believe this was fixed with #1498, please reopen if not. |
I took the exact same sample from the getting started page. In the following sample, the ripple effect is applied when pressing the button
http://codepen.io/alextekartik/pen/oXqqEm
However, if I call the same code after window.onload, the ripple effect is not applied properly
http://codepen.io/alextekartik/pen/vORRdq
A sample that create 3 buttons the same way (one directly, one during onload and one after some delay) shows the same issue (only the first has the ripple effect:
http://codepen.io/alextekartik/pen/vORRvY
Is there any other initialization code needed or is this a bug?
(tested on chrome and firefox)
The text was updated successfully, but these errors were encountered: