-
Notifications
You must be signed in to change notification settings - Fork 122
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
Request ID should be sometimes undefined #662
Comments
Hello @jkjustjoshing Good catch! From the top of my head I dont see any issues with updating this to |
Hello again. After considering changing types, we will be passing a I also noticed the |
# [@typeform/embed-v5.2.0](https://github.com/Typeform/embed/compare/@typeform/embed-v5.1.0...@typeform/embed-v5.2.0) (2024-11-20) ### Bug Fixes * **NOJIRA-123:** Prevent loading live embed multiple times ([#668](#668)) ([ac398e0](ac398e0)) ### Features * **TU-17542:** Update docs on sandbox mode ([#664](#664)) ([be89ed2](be89ed2)), closes [#662](#662)
🎉 This issue has been resolved in version @typeform/embed-v5.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The
event
argument type passed to theonSubmit
callback (and probably others, I didn't check) can beundefined
when sandbox mode is enabled. However, the type definition says it's always a string.Can be seen when using React
event.responseId
isundefined
when sandbox mode is enabled, but the type definition isstring
, notstring | undefined
.The fix
Update this line to be
However, that may indicate
responseId
is missing, not set toundefined
, so you could also updateWithResponseId
to be{ responseId: string | undefined }
, but I'm not sure where else that type is used and what the repercussion is.The text was updated successfully, but these errors were encountered: