flipbyte / formik-json-schema

Easily create react forms using JSON / Javascript Object
MIT License
152 stars 40 forks source link

undo issues with code editor #47

Closed geseq closed 5 years ago

geseq commented 5 years ago

Describe the bug

Undo/Redo works strangely in code editor.

  1. Works character by character instead of blocks of text.
  2. Each undo requires two ctrl+z/cmd+z presses.
  3. Redo doesn't work

To Reproduce

  1. Go to demo code editor and type some text (works differently on pasted text)
  2. Press ctrl+z/cmd+z several times.

Expected behavior

Undo/Redo should work as in underlying codemirror.

Your environment

Demo