Skip to content
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

Make event notification handler read the value from currentTarget, #5309

Merged

Conversation

tomalec
Copy link
Contributor

@tomalec tomalec commented Jul 30, 2018

instead of the target which may not be bound to any data.

Reference Issue

Fixes #5308
Related to 1.x issue #2497

Copy link
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. We do have to run this through Sauce though to see if we broke browser-compatibility (IE, looking at you). @azakus Do you mind pushing to a branch on our repo to kick off Travis for that?

el.$.boundChild.customEventValue = 42;
child.dispatchEvent(new Event('custom', {bubbles: true}));
console.warn(el.$.boundChild.customEventValue);
console.warn(el.$.boundChild.customEventValue);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, do you mind removing these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, fixed.

instead of target which may not be bound to any data.

Fixes Polymer#5308
@tomalec tomalec force-pushed the issues/5308-event-notification-handler branch from f1600f3 to 7a00b3c Compare July 30, 2018 19:07
@TimvdLippe
Copy link
Contributor

I have pushed the branch to our repository. Travis build running at https://travis-ci.org/Polymer/polymer/builds/411197150?utm_source=github_status&utm_medium=notification

@TimvdLippe
Copy link
Contributor

Confirmed working 🎉 Merging this one. @tomalec Could you open a similar PR to master as well?

@tomalec
Copy link
Contributor Author

tomalec commented Aug 2, 2018

Thanks! 3.x PR is here #5313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants