Open jaichandra opened 7 years ago
found the same issue reported here: https://github.com/Polymer/polymer/issues/2374 This is related as well: https://github.com/Polymer/polymer/issues/1921
This is a bug with ShadyDOM. The above example works if I enable ShadowDOM https://github.com/Polymer/polymer/issues/1921#issuecomment-282802436
Issue to track: https://github.com/Polymer/polymer/issues/4341
Description
If node, it doesn’t work.
This is happenning because the
paper-drawer-panel
is wrapped inside another element and if we try to pass the elements through thelocalTarget
reference in the_onTap
method ofpaper-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
app
icon. The drawer doesn't open.<content></content>
in thex-base
element (above example) with<paper-icon-button icon="apps" paper-drawer-toggle></paper-icon-button>
and the component works.Browsers Affected