Open singpolyma opened 11 months ago
This is just as interesting to me, hint how to implement it
@singpolyma please you can help with it?
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
Related issue: #7
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.