You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug or I'm not following the correct pattern. I need to store the code that the user edited in the state. (In my app, I'm using Redux, but I've simplified it to just React state with useState for this example.)
When I type into the LiveEditor, the first character is inserted into the correct place. However, after that,the cursor jumps to the end of the LiveEditor, and any following characters are inserted there.
I figured saving the code in state is probably fairly common, so maybe I'm just not following the right pattern here?
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a bug or I'm not following the correct pattern. I need to store the code that the user edited in the state. (In my app, I'm using Redux, but I've simplified it to just React state with
useState
for this example.)When I type into the
LiveEditor
, the first character is inserted into the correct place. However, after that,the cursor jumps to the end of the LiveEditor, and any following characters are inserted there.I figured saving the code in state is probably fairly common, so maybe I'm just not following the right pattern here?
The text was updated successfully, but these errors were encountered: