onSubmit prop in React Widget not firing
See original GitHub issueI’ve been using the Widget component from @typeform/embed-react
for months now with no issues, however as of this morning the onSubmit handler has stopped firing. To test, I replaced the body of my onSubmit handler with just a console.log and am not seeing even that.
My implementation looks like:
[...]
const handleSubmit = (response) => {
console.log('submitted');
};
[...]
return (
<Widget
id="<id here>" // edited out, but can provide this id if necessary
style={{ width: "100%", height: "100%", zIndex: 10 }}
onSubmit={handleSubmit}
/>
);
The Results tab in the Typeform admin shows that my responses are in fact being submitted.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
react is not firing form onSubmit function - Stack Overflow
The problem lies with <Button> from Material-ui not being an actual button but rather a combination of a <span> .
Read more >Can clicking the custom "I want to submit" button not trigger ...
Ideally, I'm providing a sample JSFiddle or a shared playground link demonstrating the issue. Description. Can clicking the custom "I want to ...
Read more >Submit Validation Example - Redux Form
Pass it as an onSubmit prop to your decorated component. ... inside your decorated component to cause it to fire when the submit...
Read more >React Stripe.js reference | Stripe Documentation
The easiest way to initialize a Stripe object is with the Stripe.js wrapper module. After this prop has been set, it can not...
Read more >Home - react-jsonschema-form documentation - Read the Docs
Note: The CDN version does not embed react or react-dom . ... You can pass a function as the onSubmit prop of your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We identified the issue and prepared a fix. It should be deployed and available shortly. I will update you here and close the issue when it is.
Hello all, thank you for reporting this. We are aware about this bug and will look into it right away.