Re: [ClojureScript] Re: Om: lost focus in radio buttons when changing values

2015-03-23 Thread Elyahou Ittah
Thank you Leon, I used your second solution and it works perfectly 2015-03-23 20:48 GMT+02:00 Leon Grapenthin : > You can't close over the owner objet of a parent from within a > subcomponent. That is because there is no guarantee that the subcomponent > re-renders when the parent owner object i

[ClojureScript] Re: Om: lost focus in radio buttons when changing values

2015-03-23 Thread Leon Grapenthin
You can't close over the owner objet of a parent from within a subcomponent. That is because there is no guarantee that the subcomponent re-renders when the parent owner object is replaced. One solution would be to pass a callback handler to the subcomponent, e. g. have a subcomponent (fn [{:k

[ClojureScript] Re: Om: lost focus in radio buttons when changing values

2015-03-20 Thread Steve Ashton
I ran into a similar error with losing focus. In my case it was because I was generating a different react-id in an on-blur method. I ran your code, and didn't see the id change. But (the reason I bring this up), I do see the same behavior in the Chrome DOM explorer with your code as I did with