Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Authors repeat-input can't be moved"

Merged VIAUD Nathan requested to merge 171-authors-repeat-input-can-t-be-moved into main
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -60,8 +60,9 @@ function onRepeatInput(value, id) {
const item = element.formValues[id].splice(value.oldIndex, 1);
element.formValues[id].splice(value.newIndex, 0, item[0]);
} else {
const item = node.data.formValues[id].splice(value.oldIndex, 1);
node.data.formValues[id].splice(value.newIndex, 0, item[0]);
const tmp = node.data.formValues[id][value.oldIndex];
node.data.formValues[id][value.oldIndex] = node.data.formValues[id][value.newIndex];
node.data.formValues[id][value.newIndex] = tmp;
}
}
} else if(value.type === 'change') {
Loading