chatscope / chat-ui-kit-react

Build your own chat UI with React components in few minutes. Chat UI Kit from chatscope is an open source UI toolkit for developing web chat applications.
https://chatscope.io
MIT License
1.25k stars 104 forks source link

Keep disabled MessageInput sendButton when text is none even if props is given. #126

Closed naninanya closed 11 months ago

naninanya commented 1 year ago

Hi.

I want to manage MessageInput sendButton wthere is enable or not, but I found if we set sendDisabled props of MessageInput, sendButton even used props value when input text is none.

Would you change the above priority?

supersnager commented 11 months ago

@naninanya Thank you for the question. This can't be changed. The property sendDisabled is to force disabling send button independent of the input value. The Proposed change would make this flag unneccesary. You can track message input value and set sendDisabled to undefined or false when the value of the input is empty.