mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Use aget composedPath to avoid casting JS array to seq
This commit is contained in:
parent
c829504b59
commit
c8209a69db
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@
|
||||||
fallback to target property if not available"
|
fallback to target property if not available"
|
||||||
(let [original-event (.getBrowserEvent event)]
|
(let [original-event (.getBrowserEvent event)]
|
||||||
(if (exists? (.-composedPath original-event))
|
(if (exists? (.-composedPath original-event))
|
||||||
(first (.composedPath original-event))
|
(aget (.composedPath original-event) 0)
|
||||||
(.-target event))))
|
(.-target event))))
|
||||||
|
|
||||||
(defrecord Html5History [on-navigate router listen-key click-listen-key]
|
(defrecord Html5History [on-navigate router listen-key click-listen-key]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue