We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6898f69 + 4c6c076 commit dab0dccCopy full SHA for dab0dcc
frontend/.changeset/shiny-humans-own.md
@@ -0,0 +1,5 @@
1
+---
2
+'pydantic-forms': patch
3
4
+
5
+Prevents uncontrolled elements from being added to formstate
frontend/packages/pydantic-forms/src/core/helper.ts
@@ -403,8 +403,8 @@ export const getPydanticFormComponents = (
403
properties: Properties,
404
componentMatcher: PydanticFormsContextConfig['componentMatcher'],
405
): PydanticFormComponents => {
406
- const components: PydanticFormComponents = Object.entries(properties).map(
407
- ([, pydanticFormField]) => {
+ const components: PydanticFormComponents = Object.values(properties).map(
+ (pydanticFormField) => {
408
return fieldToComponentMatcher(pydanticFormField, componentMatcher);
409
},
410
);
0 commit comments