Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Issue when I clear the Draft.js Input field, previous added messages are disappearing when I clear the content

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

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!