dnbexperience / eufemia

DNB Design System
https://eufemia.dnb.no
Other
53 stars 32 forks source link

Form.SubmitConfirmation crashes the app when place in a Wizard #4086

Closed andlbrei closed 1 month ago

andlbrei commented 1 month ago

🐛 Bug Report

App crashes when trying to use Form.SubmitConfirmation within a Wizard.

TypeError
Cannot convert undefined or null to object
    at removeUndefinedProps (https://586y6z.csb.app/node_modules/
dnb/eufemia/shared/component-helper.js:639:10
    at eval (https://586y6z.csb.app/node_modules/
dnb/eufemia/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js:103:65

To Reproduce

Put a Form.SubmitConfirmation in the last step of a Wizard https://codesandbox.io/p/sandbox/form-submit-confirmation-586y6z

Expected behavior

Expect it to work as it does when it is placed as a child of Form.Handler.

Eufemia Version

10.51.2

tujoworker commented 1 month ago

:tada: This issue has been resolved in version 10.52.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

andlbrei commented 1 month ago

@tujoworker this still crashes, but with a different message this time. I updated the CSB to use 10.52.0

Firefox:

TypeError
internalDataRef is undefined
SubmitConfirmation/getParamsRef<@https://586y6z.csb.app/node_modules/
dnb/eufemia/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js:93:7

SubmitConfirmation@https://586y6z.csb.app/node_modules/
dnb/eufemia/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js:147:348

Edge:

TypeError
Cannot read properties of undefined (reading 'current')
    at Object.eval [as current] (https://586y6z.csb.app/node_modules/
dnb/eufemia/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js:93:29

    at SubmitConfirmation (https://586y6z.csb.app/node_modules/
dnb/eufemia/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js:147:348
tujoworker commented 1 month ago

:tada: This issue has been resolved in version 10.52.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: