Hello everyone I m making simple chat with React and Draft.js, I m having an issue here, When I submit the value from Draft.js to the chat room it works fine, but when I erase the value from Draft.js input field to send another message, previous message gets erased in the chat, but as soon as I type something in Draft.js input field the text comes back to chat room.
Can someone help me with this issue, where I am making the mistake. You can also see the gif below. Thanks