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

localTarget and event-retargeting doesn't work when paper-drawer-panel is nested #165

Open
1 of 8 tasks
jaichandra opened this issue Feb 27, 2017 · 3 comments
Open
1 of 8 tasks

Comments

@jaichandra
Copy link

jaichandra commented Feb 27, 2017

Description

If paper-drawer-panel is wrapped inside another element and if we try to pass the elements through the node, it doesn’t work.
This is happenning because the localTarget reference in the _onTap method of paper-drawer-panel changes when the element is wrapped inside another.
Is this a bug with the element or with event-retargeting itself.

Expected outcome

paper-drawer-panel should work irrespective of how it is used. So are all other elements.

Actual outcome

the event target reference is broken and it doesn't work any more.

Live Demo

https://jsfiddle.net/kleptomac/4Lbfrte2/

Steps to reproduce

  1. Click on the app icon. The drawer doesn't open.
  2. Replace <content></content> in the x-base element (above example) with <paper-icon-button icon="apps" paper-drawer-toggle></paper-icon-button> and the component works.

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@jaichandra
Copy link
Author

jaichandra commented Feb 27, 2017

found the same issue reported here: Polymer/polymer#2374
This is related as well: Polymer/polymer#1921

@jaichandra
Copy link
Author

This is a bug with ShadyDOM. The above example works if I enable ShadowDOM
Polymer/polymer#1921 (comment)

@jaichandra
Copy link
Author

Issue to track: Polymer/polymer#4341

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

No branches or pull requests

1 participant