mirror of
https://github.com/metosin/reitit.git
synced 2025-12-22 18:41:10 +00:00
Use getBrowserEvent method instead of _event property
This commit is contained in:
parent
733958404e
commit
c9076e57ad
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@
|
||||||
(defn- event-target [event]
|
(defn- event-target [event]
|
||||||
"Read event's target from composed path to get shadow dom working,
|
"Read event's target from composed path to get shadow dom working,
|
||||||
fallback to target property if not available"
|
fallback to target property if not available"
|
||||||
(let [original-event (.-event_ event)]
|
(let [original-event (.getBrowserEvent event)]
|
||||||
(if (exists? (.-composedPath original-event))
|
(if (exists? (.-composedPath original-event))
|
||||||
(first (.composedPath original-event))
|
(first (.composedPath original-event))
|
||||||
(.-target event))))
|
(.-target event))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue