Open ArekZw opened 7 years ago
Confirmed. Just came across the same issue.
Yes, this is a known issue. Unfortunately this will have to wait for the 3.1 refactor where repeaters will be rebuilt from scratch
I've faced the same issue. It looks like it is because of the check from row 2938 in script.js:
if ( _.isUndefined( currentSettings[ row.rowIndex ][ fieldId ] ) ) {
return;
}
This check aborts the updateField
method (row 2916) if the field being updated has no previous value.
I don't know why this check is necessary. Is there any situations, when we should expect someone trying to add a setting that is not allowed? Shouldn't even in that case sanitization happen on the server side?
I've simply commented out that JS check as a workaround, but please let me know if you know any specific cases when that check is important! If not, I think a quick fix could be easily done by removing that check even before the 3.1 refactor release mentioned above.
Is this a possible solution @aristath?
Thanks @Grapestain!
Has anyone figured out how to fix this yet, by chance? I see the last comment here was almost 2 years ago and I am still having this issue. Commenting out the code snippet that @BenceSzalai posted above did not work for me.
Any help would be greatly appreciated!
Probably, because you client side uses the minified JS. Look for script.min.js
and try to make the same change on that too.
Looks like it has moved since here: https://github.com/kirki-framework/kirki/blob/develop/packages/kirki-framework/control-repeater/src/assets/scripts/control.js#L736
Issue description:
But if I create second row, second field in second row works.
Version used:
3.0.9 and develop branch
Using theme_mods or options?
options
Code to reproduce the issue (config + field(s))
Step 1:
Step 3: