Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handleSubmit does nothing #317

Open
major-mann opened this issue Feb 23, 2023 · 0 comments
Open

handleSubmit does nothing #317

major-mann opened this issue Feb 23, 2023 · 0 comments

Comments

@major-mann
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant