MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
723 stars 557 forks source link

fix: correct validation for children of Box component #2423

Closed FrederikBolding closed 4 months ago

FrederikBolding commented 4 months ago

Fixes a problem where Field was allowed as a child of Box or as the content of a UI by itself. The implementation assumes elsewhere that Field is always a child of Form and so the validation should uphold that.

Note: We should revisit the decision to require Field always being a child of a Form later since it would make sense to allow Box within forms as well for positioning. But this requires a validation refactor.

FrederikBolding commented 4 months ago

@metamaskbot update-pr