You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this check should be replaced with a sendDisabled check, or no check since the button disablement should be enough to prevent this from being called when we don't want it.
The text was updated successfully, but these errors were encountered:
I think this behavior should be controlled by dedicated flag.
For now as a workaround you can set <MessageInput sendButton={false} />, and use custom send button like in this story: Wrapped MessageInput
In my app sometimes a user can attach a file, then push send, without typing a message. I can use
sendDisabled
to make the button become enabled when there is an attachment, but clicking it does not trigger theonSend
handler because of https://github.com/chatscope/chat-ui-kit-react/blob/master/src/components/MessageInput/MessageInput.jsx#L134I think this check should be replaced with a sendDisabled check, or no check since the button disablement should be enough to prevent this from being called when we don't want it.
The text was updated successfully, but these errors were encountered: