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
Delete the first element in the array (click the -
Run these in the console:
AutoForm.getFieldValue('arr.1.first', 'qf')
jQuery('[name="arr.1.first"]').get(0).value
Note the varying output e from the first and c from the second.
However, note that if you click submit you get an empty value as the first entry in the array (see #1049).
We're using the afEachArrayItem helper, and experience the same behaviour. The value of this.index doesn't change, but the results returned by AutoForm.getFieldValue() change when an element is deleted. I also noticed that calling AutoForm.getFieldValue('arr') returns an array with the deleted elements correctly removed, unlike the issue described in #1049.
The text was updated successfully, but these errors were encountered:
I've produced a quick reproduction.
AutoForm.getFieldValue('arr.1.first', 'qf')
jQuery('[name="arr.1.first"]').get(0).value
Note the varying output
e
from the first andc
from the second.However, note that if you click submit you get an empty value as the first entry in the array (see #1049).
We're using the
afEachArrayItem
helper, and experience the same behaviour. The value ofthis.index
doesn't change, but the results returned byAutoForm.getFieldValue()
change when an element is deleted. I also noticed that callingAutoForm.getFieldValue('arr')
returns an array with the deleted elements correctly removed, unlike the issue described in #1049.The text was updated successfully, but these errors were encountered: