Closed pavansai2299 closed 3 years ago
Found the solution. Thanks
Hi, Can you please share the solution?
Hi,
You can pass the validator function like below as props to chatbot component. you can filter user input for null or even you can restrict the user to specific length according to the logic.
The below method prevents sending any user message when input is null.
const validator = (input) => {
if (input.length > 0) return true;
return false
}
Yes validator function I have used already. I thought you are actually disabling(hiding) send button and enabling(showng) it only when user enters any value. Thanks
Hi, thanks for this amazing package.
Is there any way to disable send button on no user input or null input from user?
please help me in this