signavio / react-mentions

@mention people in a textarea
https://react-mentions.vercel.app
Other
2.43k stars 566 forks source link

bug: Undo is not working after copy/paste #607

Open ghost opened 2 years ago

ghost commented 2 years ago

There are three more tickets (and the first one was opened in 2016!).

https://github.com/signavio/react-mentions/issues?q=is%3Aissue+is%3Aopen+undo

Undo/Redo is not working after copying or pasting into input (with shortcuts Ctrl+Z/Ctrl+Y and from contextmenu too). Personally I fixed that bug by implementing a history of messages and adding event listeners for keydown.