Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Jumping cursor with controlled input #111

Open
jakubito opened this issue Oct 25, 2018 · 1 comment
Open

Jumping cursor with controlled input #111

jakubito opened this issue Oct 25, 2018 · 1 comment

Comments

@jakubito
Copy link

Create controlled input with freactal store - whenever you type a character at any cursor position, the cursor jumps to the end of input.
This repro is taken straight from the README https://github.com/FormidableLabs/freactal#effects
https://codesandbox.io/s/4xoo5k50l7

@bingomanatee
Copy link

I have found this to be true. Its something to do with order of operations/race conditions. I know this doesn't sound like a solution but I would suggest that you use component state for inputs and relay that state to Freactal indirectly in the componentDidUpdate hook.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants