Fork me on GitHub
#reagent
<
2017-06-02
>
pesterhazy07:06:58

@mikethompson looks like @yogthos has solved the issue?

yogthos13:06:08

yeah it was caused by an old React version in devcards

urbank13:06:29

Not sure if this is the right place to ask, but with this library

urbank13:06:01

controlled inputs fields move the cursor to the end of the input on every edit

urbank13:06:30

Does anyone know what might be going on?

urbank13:06:34

it doesn't seem to be an issue here, in the example at the bottom of the page with a controlled form

mihaelkonjevic13:06:56

@urbank I’ve noticed that calling reagent/flush after you store the input in the atom usually solves the issue

mihaelkonjevic14:06:21

I’ve had a similar issue with the material ui library

urbank14:06:13

@mihaelkonjevic Hm, yup that solved it. Any idea what would be causing this? It isn't an issue with a regular :input element

metametadata14:06:54

and Reagent has some built-in magic that fixes :input

metametadata14:06:29

I'm using React-bootstrap and had to write the helper like this to make inputs work: https://gist.github.com/metametadata/3b4e9d5d767dfdfe85ad7f3773696a60

urbank14:06:08

@metametadata I see. Hm, might have to do something like that. Or I suppose reagent/flush

dimovich14:06:42

does the react render order has anything to do with z-index?

dimovich14:06:23

I find the components are drown on top of other elements with higher z-index

pesterhazy16:06:40

@metametadata thanks for sharing that gist, that type of solution could solve a bunch of input related problems

pesterhazy16:06:51

same with react-native inputs