Skip to content
Permalink
Browse files

Issue #2 Resolution - stacking "change" event listeners

Also preventing the "change" event listeners from stacking which results
in the same activity, changing the value of the selected option, from
running multiple times
  • Loading branch information...
tkjone committed Sep 23, 2019
1 parent ceb1ae2 commit c87c9b13562856191c3374ffe521c5d97875f281
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/demo_reloadable_code/calendar.cljs
@@ -174,12 +174,12 @@
(events/listen
(.. js/document (querySelector ".calendar-form"))
"submit"
handle-add-event!))
handle-add-event!)

(events/listen
(.. js/document (querySelector "#event_start"))
"change"
update-event-end-dropdown!)
(events/listen
(.. js/document (querySelector "#event_start"))
"change"
update-event-end-dropdown!))

(defonce initial-load (setup))

0 comments on commit c87c9b1

Please sign in to comment.
You can’t perform that action at this time.