FredrikOseberg / react-chatbot-kit

MIT License
299 stars 139 forks source link

Disabling the input tag based on condition #53

Open skmainwal opened 3 years ago

skmainwal commented 3 years ago

Hello Fredrik, i want to disable input tag based on condition like {display :"none"},how can I add condition to this class "react-chatbot-kit-chat-input". I'm trying to find out .how to resolve this issue but I was not able. Please tell me, if there is any way to resolve this issue. Thanks image

FredrikOseberg commented 3 years ago

Currently there is no way to manipulate the input field directly with state. You might be able to do something creative like setting a piece of state and using that to apply a class that hides the input field.