Polymer / polymer

Our original Web Component library.
https://polymer-library.polymer-project.org/
BSD 3-Clause "New" or "Revised" License
22.04k stars 2.01k forks source link

`Polymer.dom(event).localTarget` returns incorrect target with `ShadyDOM.noPatch` on #5526

Closed sorvell closed 5 years ago

sorvell commented 5 years ago

The intention of Polymer.dom(event).localTarget is to return the lowest element in the same root as the event's currentTarget. When ShadyDOM.noPatch is enabled, we just return currentTarget, which is incorrect.