-
Notifications
You must be signed in to change notification settings - Fork 27
Multiple ripple elements in a polymer element don't respect parent node bounds #2
Comments
On polymer 1.0, with something like
the paper ripple still doesn't respect the boundaries properly, and is in fact, interfering with clicking on some of the entries, notably the ones near the top when clicked appear to click the ones at the bottom. That aside, the ripple effects does leak into any items which are selected at the time, but items which are not selected do not show the leaking effects. |
Can confirm that this bug is still happening on Having dug into it deeper and looked through @peterwmwong's PR, it looks like the problematic code is somewhere within the What is the purpose of this code? Wouldn’t the ripple always want to be stuck to its parent element, or is there some nuance here I’m not catching? Modifying the logic to check for this.parentNode fixes the issue in particular, but I’m not sure if it fixes it for all use cases. I'm afraid to entirely eliminate the check, as I feel like there was a reason for this code in the first place, and that removing the search for the owner root may invalidate a particular use-case, or break functionality under a certain configuration. I then had a chat with @arthurevans, who suggested:
If that is the case, perhaps it would be best to first check if |
Having played around with the element, it looks like indeed, when using the shadow DOM, It looks like, then, that the logic should first check if I've implemented this logic in #22, which fixes the problem. I have checked that it works in both shady and shadow DOM. Demo here: http://plnkr.co/edit/2ZlrEBCRVpe9JvxsBlcA?p=preview |
+1 |
+1 please apply vsimonian's PR |
Thanks for doing all of the heavy lifting guys. The proposed solution seems like a good one. |
http://jsbin.com/dayawe/2/edit?html,output
The text was updated successfully, but these errors were encountered: