freactal
freactal copied to clipboard
Jumping cursor with controlled input
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
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.