Needed a select element with multiple="true". After much digging finally came up with a way to handle them. Code below. Curious if anyone has a better way.
The relevant code starts at (let [options... (defn update-data [item owner k] (let [node (om/get-node owner (name k)) v (if (-> node .-multiple) (let [options (.-options node)] (areduce options i ret [] (if (.-selected (aget options i)) (conj ret (.-value (aget options i))) ret))) (-> node .-value string/trim)) validators (om/get-shared owner [:tree-config (:type @item) :validators k])] (when-not (= v (k @item)) (om/transact! item k (fn [i] v))))) Cheers, Jamie -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.