Losing entries for nested forms on validate
To reproduce:
- Have form for update action with
manage_relationship(:resource, type: :direct_control)
.
- Have a button to add new form:
- click button, form is added, everything works fine.
- make a change in the form, phx-change event is handled:
- the nested forms disappear!3 Replies
Solution
I think you're missing pattern matching the actual params out
that works but now the fields that are not nested do not work. I must be missing something related to the component helpers
yup, that was it, thanks!