rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
stephenmhopper 2018-09-03T14:33:37.000100Z

Does anyone have a working example of using radio buttons with CLJS and Rum? I’m running into some very strange behavior and I’m not sure why.

2018-09-03T14:52:40.000100Z

Blindly responsing to the 'strange behaviour'. Had something like that some time ago. Check: http://photonsphere.org/posts-output/2018-04-10-clojurescript+react-number-inputs/

2018-09-03T15:08:52.000100Z

Weird... Can only suggest to check for differences with the Rum example code for a.o. check boxes. https://github.com/tonsky/rum/blob/gh-pages/examples/rum/examples/inputs.cljc

2018-09-03T15:09:11.000100Z

And radio buttons.

serioga 2018-09-03T17:51:32.000100Z

so code looks like

[:input {:type "radio"
               :id input-id
               :value input-id
               :checked checked
               :disabled disabled-or-readonly
               :on-change (on-change-radio state field-id)}]