Closed FrederikBolding closed 3 months ago
@metamaskbot update-pr
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.36%. Comparing base (
a435bff
) to head (6d4c157
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Adds support for additional components inside forms, essentially allowing all children of
Box
to also be children ofForm
. AlthoughForm
remains the only component whereField
can exist. This also means forms can now be nested, when this happens the input state is tied to the nearest parent form.To support this change, a refactor of the
constructState
function was done. This function now useswalkJsx
to walk the entire JSX tree and collect state values.Closes https://github.com/MetaMask/snaps/issues/2496