Is there a reactify-component
equivalent in Rum? http://reagent-project.github.io/docs/master/reagent.core.html#var-reactify-component
Wow that is entirely unusable on mobile
Iirc you should be able to use the component directly
I'm wanting to use Rum components within vanilla React. @mattly not sure how to do it as most of the ways I am trying is not working.
if form's on-change
is not called when input value is changed by user then yes
Yea I am stumped haha. If anyone can shed some light on how one would go about that I would greatly appreciate it 🙂
I am using Shadow-cljs to integrate with existing project. Got Reagent working with it fine by using reactify-component
but I am not sure how I can achieve this with rum.
The form's :on-change
is called when the input value changes, updating the atom causing the input to change – this is working fine. But it also resets the cursor position to the end of the text which is a problem :thinking_face:
It only resets the cursor position when the :on-change
handler is put on the form
-tag. There are no issues when putting it on the input
-tag.
I tried posting a gif in this thread that illustrates the issue, but I'm not sure it was uploaded correctly edit: here it is: https://user-images.githubusercontent.com/15210698/52402545-d6f75200-2ac4-11e9-9703-ef23acb38846.gif