Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Delegated events on SVG group elements aren't raised in IE #3

Closed
kevingorski opened this issue Jul 9, 2013 · 2 comments
Closed

Delegated events on SVG group elements aren't raised in IE #3

kevingorski opened this issue Jul 9, 2013 · 2 comments

Comments

@kevingorski
Copy link

Demo: http://bl.ocks.org/kevingorski/5958985
(I've used KO 2.3.0 here, same behavior with 2.2.1)

Clicking green blocks (delegated click on rect element) works (an alert is shown with the index of that element) in IE, Chrome, and Firefox.

Clicking the red blocks (delegated click on group element that contains rect and text) works only in Chrome and Firefox. In IE9 nothing happens.

I can work around this by putting the delegated events on each of the elements in the group, but the DRY-er option working would be appreciated.

@rniemeyer
Copy link
Owner

fixed. let me know if you see any further problems and thanks for reporting this one and for providing a good sample.

@kevingorski
Copy link
Author

That did it, thanks!

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

No branches or pull requests

2 participants