Use getBrowserEvent method instead of _event property

This commit is contained in:
Antti Leppänen 2019-04-12 07:12:46 +03:00
parent 733958404e
commit c9076e57ad

View file

@ -62,7 +62,7 @@
(defn- event-target [event]
"Read event's target from composed path to get shadow dom working,
fallback to target property if not available"
(let [original-event (.-event_ event)]
(let [original-event (.getBrowserEvent event)]
(if (exists? (.-composedPath original-event))
(first (.composedPath original-event))
(.-target event))))