bug fixing

This commit is contained in:
lotte
2020-01-17 16:51:05 +01:00
parent db96da55d8
commit a4d5e0d20e
15 changed files with 28 additions and 98 deletions

View File

@@ -293,6 +293,7 @@ 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, 'remove'));
this.formBuilderService.removeFormArrayGroup(index, formArrayControl, arrayContext);