-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Date binding notification events are broken if the bound element has children #5308
Comments
@tomalec Seems like a valid case. Do you mind filing a PR with the fix + test cases? Please submit them to both the 2.x and the 3.x branch. Thanks! 😄 |
instead of target which may not be bound to any data. Fixes Polymer#5308
@TimvdLippe Here you have 2.x #5309 :) |
@jsilvermist That's the point I use native |
@tomalec Awesome thanks. Once that is merged, please also open a PR on |
instead of target which may not be bound to any data. Fixes Polymer#5308
instead of target which may not be bound to any data. Fixes Polymer#5308
Thanks a lot for the quick feedback :) |
Likewise for the detailed issue + solution PR :)
Op do 2 aug. 2018 om 15:31 schreef Tomek Wytrębowicz <
[email protected]>:
… Thanks a lot for the quick feedback :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5308 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFrDb29S05VeTS3l8fsdr9rUecgowQcAks5uMv8xgaJpZM4VmUbC>
.
|
Description
Notification events do not work if the bound element has children. They seem to read the value from the descendant node instead of the bound one.
Live Demo
https://glitch.com/edit/#!/small-duke?path=index.html:13:41
Steps to Reproduce
div
with property bound with notification event, likevalue="{{value::click}}"
div
div
Expected Results
The property (
value
) should be changed.Actual Results
The property is set to
undefined
or any value ofdescendant.property
.Browsers Affected
Versions
Possible fix
Seems that
handleNotification
should checkevent.currentTarget
notevent.target
atpolymer/lib/mixins/property-effects.js
Line 356 in 5807ce0
The text was updated successfully, but these errors were encountered: