react-mentions
react-mentions copied to clipboard
Undo functionality is not working completely fine
Steps to reproduce:
- Add MentionsInput with no value
- Now type something
- Now add some mentions using trigger keyword ( # or @ ) specified
- Now type something again .
- Now keep doing undo
Expected behaviour: Undo should remove all the text
Observed behaviour: Undo works only till the point mention is added to textarea box . Thus undo functionality is not working completely . This behaviour can also be observed in demo index.html provided with this repo .
It seems that the undo also breaks if pasting some text in the textarea.
Can you solve this bug with high priority or can any other contributor solve this bug?