Fork me on GitHub
#reagent
<
2017-01-20
>
pesterhazy09:01:45

Well react assumes it has full ownership of the Dom of its components

pesterhazy09:01:01

If you just want to read the value of Dom element, you can use a ref callback

klozhur18:01:18

@pesterhazy, Thanks. I ran a pared down test, and when I changed the atom value in figwheel, got the following in the chrome dev console: "Warning: ReagentInput is changing an uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components" Of course, I do dereference the atom even if not always writing it to the textbox's value attribute, but it is what it is, I guess.

klozhur18:01:59

Just to put this to bed, resetting the ratom in onchange did the trick, so thanks for that suggestion.