Skip to content

Conversation

@DheerajCoder
Copy link

This PR includes two key bug fixes in the Chatbot UI project, with all changes made in components/chat/chat-input.tsx.

Fixes Included:
Prevent Submitting Whitespace-Only Messages

Users were previously able to send messages that only contained spaces or tabs.

Now, messages containing only whitespace are blocked from being submitted.

🛠️ Change ensures cleaner chat history and better user experience.

Fix for File Upload on Cancel

When users select a file or image, cancel the upload, and then try to re-upload the same file, it wasn’t being detected or shown.

This fix resets the file input value, so users can now re-select the same file successfully.

📍 File Modified:

components/chat/chat-input.tsx

input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant