This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-27
Channels
- # aleph (5)
- # announcements (18)
- # beginners (200)
- # cider (25)
- # cljdoc (4)
- # cljsrn (3)
- # clojure (90)
- # clojure-europe (3)
- # clojure-finland (5)
- # clojure-france (1)
- # clojure-houston (1)
- # clojure-italy (8)
- # clojure-nl (15)
- # clojure-spec (24)
- # clojure-uk (20)
- # clojurescript (199)
- # core-async (2)
- # cursive (45)
- # data-science (14)
- # datomic (33)
- # duct (13)
- # fulcro (4)
- # graphql (3)
- # kaocha (9)
- # leiningen (24)
- # nrepl (16)
- # off-topic (105)
- # pathom (15)
- # pedestal (28)
- # re-frame (1)
- # reagent (14)
- # shadow-cljs (28)
- # spacemacs (8)
- # tools-deps (8)
- # vim (4)
Hi, I’m having trouble with radio buttons. I’m trying to programmatically set a specific radiobox to checked using (set! (.. (js/document.getElementById @external-val) -checked) true)
. This works fine, but after this happened the :on-change
event handlers for these radio buttons are no longer called on subsequent user actions. Am I missing something obvious? Would be great to get some pointers. Thanks!
huh I didn’t know you could do this (js/document.getElementById @external-val)
I always thought it was (.getElementById js/document @external-val)
yep definitely works, Thanks for sharing, Sorry I’m not experienced enough to see any issues there.
@hobosarefriends I just copied it from other places, never noticed it was anything special 😉
@oconn Just noticed something strange. I also have some code to reset all checkboxes to unchecked and the :on-change
handlers keep working in that case. I’m trying to figure out what’s different between the two
Has anyone had any luck integrating reagent with https://www.slatejs.org/?
In this example, slate-1
creates a basic contenteditable div that I can click into and make changes, but slate-2
creates a div that I can't even put the cursor in. Any idea what I'm doing wrong?