Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable send button when message input box is having message of length > 4 #194

Open
Subbu-git-coder opened this issue Jul 17, 2024 · 0 comments

Comments

@Subbu-git-coder
Copy link

Subbu-git-coder commented Jul 17, 2024

I'm using "react-chatbot-kit": "2.2.2".
I would like to load chatbot with disabled "Send button".
Once user entered input that is more than 4 chars, then the send button should be enabled.
I have added a validator to "Chatbot" tag. So that message of length < 5 wont be posted.
But, how to update Send button status or CSS?
The validator code is;

const Validator = (input) => { if (input.length > 4) return true; return false } export default Validator;

@Subbu-git-coder Subbu-git-coder changed the title Disable send button when validator returns False Disable send button when message input box is having message of length > 4 Jul 18, 2024
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

No branches or pull requests

1 participant