final bug fixing

This commit is contained in:
lotte
2020-02-03 14:49:06 +01:00
parent 360abb78de
commit d1b7f07c68
9 changed files with 40 additions and 33 deletions

View File

@@ -293,7 +293,6 @@ export class FormComponent implements OnDestroy, OnInit {
}
removeItem($event, arrayContext: DynamicFormArrayModel, index: number): void {
console.log(arrayContext, index);
const formArrayControl = this.formGroup.get(this.formBuilderService.getPath(arrayContext)) as FormArray;
this.removeArrayItem.emit(this.getEvent($event, arrayContext, index - 1, 'remove'));
this.formBuilderService.removeFormArrayGroup(index, formArrayControl, arrayContext);