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've been using the checkboxes component but when looping through values in the view, but there's always an additional one called '_unchecked'. If I turn off Javascript it doesn't happen. It seems to be getting added by the autostore.
Like me, you're also using <input name="parent[child]"> nested fields aren't you?
I can reproduce your issue when I do the same.
The storeData() code in ./lib/utils.js doesn't work with _unchecked here. It only removes the value at the top level, ignoring it when nested like yours.
The fix? I've patched it with the nested fields pull here: #573
I've been using the checkboxes component but when looping through values in the view, but there's always an additional one called '_unchecked'. If I turn off Javascript it doesn't happen. It seems to be getting added by the autostore.
For example, using this macro:
and this loop in the view:
Then on the page it would render:
_unchecked,singleValue
govuk-prototype-kit/app/assets/javascripts/auto-store-data.js
Line 20 in 874d910
The text was updated successfully, but these errors were encountered: