react-textarea-code-editor
react-textarea-code-editor copied to clipboard
CTRL + Z | Undo
Hello guys!
I've a big problem with "undo"... When I typing any values but I press "Enter", I need to do "UNDO", only the line is currently working, and if I press several times then I will return to the initial state, but with the values I typed before. how can i fix this?
Playground: https://uiwjs.github.io/react-textarea-code-editor/
I did not reproduce your problem. @jottasystem
@jaywcjlove What is happening is that when we try to do the "Undo" action after we have skipped a line or hit the Enter key, sometimes the "Undo" function does not work. I will leave a gif to see if it can be a little clearer. In the example I write a small text then I press some enter and write another text and start to precious the ctrl + z when doing this action it makes the "undo" correctly until it reaches the point where there was the line break.