freactal icon indicating copy to clipboard operation
freactal copied to clipboard

Jumping cursor with controlled input

Open jakubito opened this issue 7 years ago • 1 comments

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

jakubito avatar Oct 25 '18 01:10 jakubito

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.

bingomanatee avatar Oct 31 '18 02:10 bingomanatee