ankit071105 / Ticket-Booking

A website for bussiness purposes
https://ticket-booking-blue.vercel.app
71 stars 216 forks source link

[BUG] Chat Input Field Does Not Clear After Sending Message #1038

Closed varshasric4 closed 2 weeks ago

varshasric4 commented 2 weeks ago

Description

Description: When entering a message in the chat input field and pressing "Send," the message displays correctly in the chat history. However, the input field does not clear after sending the message. This results in the last message remaining in the input field, giving the impression that it hasn't been sent. Expected behavior is for the input field to be cleared automatically after each message is sent.

Steps to Reproduce:

Open the chatbot interface. Type a message (e.g., "hi, tell about you") in the input field. Press "Send." Observe that the message remains in the input field instead of clearing.

Screenshots

IMG_20241107_133824

Any additional information?

Expected Behavior: The input field should clear automatically after the message is sent to avoid confusion and improve user experience.

Actual Behavior: The input field retains the previous message even after sending it, causing it to display in both the chat history and the input field.

What browser are you seeing the problem on?

Chrome

Checklist

SWITCHin2 commented 2 weeks ago

https://github.com/ankit071105/Ticket-Booking/pull/1091

@ankit071105 due to time crunch i had resolved the issue and created PR can you please review and merge it. As there were no assigness I raised PR for the same