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.
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/
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
And radio buttons.
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)}]