The documentation seems to indicate that handleSubmit is "used for custom validation".
In https://github.com/Wolox/react-chat-widget/blob/master/dev/App.tsx#L31 it seems to be used that way, but in the code
|
handleSubmit?.(userInput); |
it doesn't seem to be handled that way, and regardless of the return value the message is dispatched.
Any chance there is a good work around to this?
The documentation seems to indicate that
handleSubmitis "used for custom validation".In https://github.com/Wolox/react-chat-widget/blob/master/dev/App.tsx#L31 it seems to be used that way, but in the code
react-chat-widget/src/components/Widget/index.tsx
Line 80 in d8b205f
Any chance there is a good work around to this?