You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I change var target = e.target || e.srcElement;
to var target = e.target.correspondingUseElement || e.target || e.srcElement;
it works as expected.
Browsers
seen this at Edge / IE11. Works fine as is in Chrome / Firefox.
consider this example:
The first svg is used as a spritesheet, and the svg inside the button uses that spritesheet to show the circle.
Expected behaviour:
When I click the red circle, I expect a console.log.
Actual behavior:
When I click the red circle, there is no console.log.
Possible fix:
This has probably to do with the shadow tree inside the svg.
when I change
var target = e.target || e.srcElement;
to
var target = e.target.correspondingUseElement || e.target || e.srcElement;
it works as expected.
Browsers
seen this at Edge / IE11. Works fine as is in Chrome / Firefox.
not working example: https://jsfiddle.net/35n6f17p/
working example: https://jsfiddle.net/szrpv7bn/
The text was updated successfully, but these errors were encountered: