Closed haydenlinder closed 4 months ago
Scope: MUI MAPPER, MAYBE OTHERS
Description Field array values are not being updated in getState()
Schema Use this example with a Field Array like this:
const schema: Schema = { title: "example", fields: [ { component: "field-array", name: "products", label: "Product section", initialValue: [""], fields: [ { component: "text-field", name: "original", label: "original", placeholder: "original", isRequired: true, validate: [ { type: "required", }, ], }, //...
You'll see that getState().values.products[0] does not get updated with the new value as it changes.
getState().values.products[0]
<If it's possible, please provide a schema which reproduces the issue>
Oops this was actually on me! Disregard
Scope: MUI MAPPER, MAYBE OTHERS
Description Field array values are not being updated in getState()
Schema Use this example with a Field Array like this:
You'll see that
getState().values.products[0]
does not get updated with the new value as it changes.<If it's possible, please provide a schema which reproduces the issue>