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
minor #11944 Bug fix: Update collection.rst (MarvinBlstrli)
This PR was merged into the master branch.
Discussion
----------
Bug fix: Update collection.rst
form.children returns the children of the parent form, but at this point we need the length of children of the childform.
Example:
If form.children|length returns 3 and you add some childs the counter count up the data-widget-counter attribute. But after submit (with validation errors) the attribute has "3" again.
Steps to reproduce:
1. Add form with child form as collection type like the documentation mentioned
2. Add validation to those fields
3. Check value of data-widget-counter
5. Click the "add" button and and some child fields (check value of data-widget-counter again)
5. Leave empty and submit the form
6. Now you see those fields with validation errors - check value of data-widget-counter - it has the same value from beginning (without fields added) and not the length of fields from child form
Commits
-------
2814081 fix data-widget-counter
0 commit comments