mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #796 - Fix events for event targets that are SVGElementInstance types in IE11.
This commit is contained in:
parent
b16e16a556
commit
f5ebf16579
@ -76,6 +76,11 @@ function attachBubbleEventListeners(doc) {
|
||||
return;
|
||||
}
|
||||
|
||||
// event.target of an SVGElementInstance does not have a
|
||||
// `getAttribute` function in IE 11.
|
||||
// See https://github.com/marko-js/marko/issues/796
|
||||
curNode = curNode.correspondingUseElement || curNode;
|
||||
|
||||
// Search up the tree looking DOM events mapped to target
|
||||
// component methods
|
||||
var propName = 'on' + eventType;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user