Merge pull request #301 from uosl/fix/composedpath

Use aget for composedPath to avoid casting JS array to seq
This commit is contained in:
Juho Teperi 2019-09-20 10:43:35 +03:00 committed by GitHub
commit 10c9097c40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))))
(defn ignore-anchor-click?