Use aget composedPath to avoid casting JS array to seq

This commit is contained in:
uosl 2019-07-11 09:04:06 +01:00
parent c829504b59
commit c8209a69db

View file

@ -64,7 +64,7 @@
fallback to target property if not available"
(let [original-event (.getBrowserEvent event)]
(if (exists? (.-composedPath original-event))
(first (.composedPath original-event))
(aget (.composedPath original-event) 0)
(.-target event))))
(defrecord Html5History [on-navigate router listen-key click-listen-key]