False alarm, the reason for it was that I was missing “historyKeymap” added to “keymap.of()”.
For some strange reason, if I downgraded @codemirror/view to 0.19.8, the bug disappeared, and when I installed 0.19.9 it was broken back again. so I assumed it was version related bug.
But never the less, the real bug was missing historyKeymap added. Sorry to bother you.
If you remove the historyKeymap, you’ll see that on Chrome Ctrl+Z still works, but if you press it twice, it’ll eat up your letters