You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out v6.0.0-alpha7 and having an issue in which a validation error set on the FieldArray is not showing when checking/unchecking the child field. Validation runs and sets the error, but the FieldArray component is not re-rendered.
Please excuse the syntax (LiveScript):
classFormextendsComponentrender:->
element FieldArray,
name: "children"component: (children)->
div null,
# log statement only called on first render and when adding new children# it's not called when checking Field inside, even though that may clear or result in errorconsole.log children.errorchoices.map (child) ->
element Field,
name: "#{child}.selected",
component: "input",
type: "checkbox"
element Button,
on-click:~>children.push {selected: false}
"Add child"form-options=form: \groupvalidate: ({children})->selected-count= sum map (.selected), childrenchildren:
ifselected-count<1then {_error: "Please select a child"}
module.exports= redux-form form-options<|Form
The log statement only fires at the beginning or when a new child is pushed into the FieldArray. It's not logging anything when checking/unchecking the checkbox.
Is this the intended behavior? Do I have to manually touch the FieldArray field when one of the children is changed?
The text was updated successfully, but these errors were encountered:
This is a bug. There's a shouldComponentUpdate on FieldArray that is only updating if the length changes, and it needs to be looking at the sync errors, too. Thanks!
I'm trying out v6.0.0-alpha7 and having an issue in which a validation error set on the FieldArray is not showing when checking/unchecking the child field. Validation runs and sets the error, but the FieldArray component is not re-rendered.
Please excuse the syntax (LiveScript):
The log statement only fires at the beginning or when a new child is pushed into the FieldArray. It's not logging anything when checking/unchecking the checkbox.
Is this the intended behavior? Do I have to manually
touch
the FieldArray field when one of the children is changed?The text was updated successfully, but these errors were encountered: