mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-04-22 10:52:16 +00:00
Fixed oneCol inputs
Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
3366dda9aa
commit
c2d2899a8c
@ -142,15 +142,23 @@ export default class RepeatInput extends DefaultInput {
|
|||||||
let values = []
|
let values = []
|
||||||
for (const line of this.elements) {
|
for (const line of this.elements) {
|
||||||
let lineArray: any = {}
|
let lineArray: any = {}
|
||||||
|
const realLine: InputAbstract[] = []
|
||||||
|
for (let i = 0; i < line.length; i++) {
|
||||||
|
const col = line[i];
|
||||||
|
if (!col.element.hasAttribute('data-ignore')) {
|
||||||
|
console.log(col)
|
||||||
|
realLine.push(col)
|
||||||
|
}
|
||||||
|
}
|
||||||
//one element repeat
|
//one element repeat
|
||||||
if (line.length == 1) {
|
if (realLine.length === 1) {
|
||||||
for (const col of line) {
|
for (const col of realLine) {
|
||||||
values.push(col.getValue())
|
values.push(col.getValue())
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// multi elements repeat
|
// multi elements repeat
|
||||||
for (const col of line) {
|
for (const col of realLine) {
|
||||||
// if ()
|
// if ()
|
||||||
lineArray[col.getName()] = col.getValue()
|
lineArray[col.getName()] = col.getValue()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user