This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-19
Channels
- # 100-days-of-code (5)
- # announcements (1)
- # aws (1)
- # beginners (112)
- # cider (135)
- # cljdoc (6)
- # clojure (111)
- # clojure-dev (8)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-sweden (3)
- # clojure-uk (152)
- # clojurescript (101)
- # datascript (14)
- # datomic (61)
- # editors (1)
- # emacs (29)
- # events (7)
- # figwheel (3)
- # figwheel-main (15)
- # fulcro (18)
- # funcool (2)
- # graphql (1)
- # juxt (2)
- # off-topic (51)
- # om (1)
- # overtone (28)
- # perun (2)
- # reagent (1)
- # reitit (6)
- # ring-swagger (5)
- # shadow-cljs (112)
- # spacemacs (49)
- # tools-deps (10)
- # unrepl (11)
- # yada (10)
I am having a lot of trouble using :onBlur event handler within React/om. I am using it in a multiple select drop-down, in two locations. The user picks one or more choices in each drop-down, then clicks on a button - the last choice (before the click) doesn’t get preserved, but when clicking anywhere else (outside the last select) it is fine…I tried triggering a jQuery (.blur ($ :.selection)), but to no avail… I am using an (om/update! ….) form which scans through all the state objects and the dom <option>s to assign a :selected? attribute. When I print out the new cursor (returned by om/update!), the new state is accurate. However unless the user actually clicks outside the <select>, nothing happens….any ideas? Thanks..