Commit 2651f18f authored by Sven Franck's avatar Sven Franck

app: add first/last child handling for single radio button groups

parent fb783c9d
......@@ -4002,8 +4002,10 @@
clone.logic.value = clone_opt.value;
clone.attributes["data-i18n"] = clone_opt.text_i18n;
switch (p) {
case 0: clone.position = true; break;
case len -1: clone.position = false; break;
case 0:
clone.position = len === 1 ? null : true;
break;
case len -1: clone.position = false; break;
}
group.children.push(clone);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment