Financial-Times / ftdomdelegate

Create and manage a DOM event delegator
MIT License
320 stars 36 forks source link

IE10 click event doesn't work on an SVG. #89

Closed matine closed 5 years ago

matine commented 7 years ago

Currently throwing an exception trying to call getAttribute function

bakura10 commented 6 years ago

I have this issue as well, although I do not directly attach the listener to an SVG but to a click that ocntains the SVG. When the padding of the link is clicked, it works properly, however when the inner SVG is clicked exactly, listener is not called.

Is there a way to solve this issue? It works properly on IE11+ :).

magicspon commented 6 years ago

Any joy? Just come across this issue.

I'm using a psuedo element to get round this issue:

[data-menu-close] {
    svg {
        z-index: -1;
    }

    &::after {
        @apply absolute pin w-full h-full block;

        content: ' ';
    }
}
notlee commented 5 years ago

Hi all, this should be fixed by backflip's pr and will go out in the next release (v3.1.0). Edit: Thanks for creating the issue, sorry it took so long :)