diff --git a/ui/ui-frontend/projects/vitamui-library/src/app/modules/components/vitamui-multi-inputs/vitamui-multi-inputs.component.ts b/ui/ui-frontend/projects/vitamui-library/src/app/modules/components/vitamui-multi-inputs/vitamui-multi-inputs.component.ts index 98bcfa6587f..009f0b25e6a 100644 --- a/ui/ui-frontend/projects/vitamui-library/src/app/modules/components/vitamui-multi-inputs/vitamui-multi-inputs.component.ts +++ b/ui/ui-frontend/projects/vitamui-library/src/app/modules/components/vitamui-multi-inputs/vitamui-multi-inputs.component.ts @@ -34,10 +34,14 @@ * The fact that you are presently reading this means that you have had * knowledge of the CeCILL-C license and that you accept its terms. */ +<<<<<<< HEAD import { Component, ElementRef, forwardRef, Input, OnChanges, OnDestroy, SimpleChanges, ViewChild } from '@angular/core'; +======= +import { Component, ElementRef, forwardRef, inject, Input, OnChanges, OnDestroy, SimpleChanges, ViewChild } from '@angular/core'; +>>>>>>> 512faaea3 (Bug #15705: Accession register - filter issues) import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { Subscription } from 'rxjs'; -import { EditableFieldComponent } from '../editable-field/editable-field.component'; +import { EditableFieldComponent } from '../editable-field'; export const MULTIPLE_INPUT_VALUE_ACCESSOR: any = { provide: NG_VALUE_ACCESSOR, @@ -88,7 +92,6 @@ export class VitamuiMultiInputsComponent extends EditableFieldComponent implemen } this.values.push(val); this.onChange(this.values); - this.originValue = this.values; this.editMode = false; this.control.reset(); } @@ -109,7 +112,6 @@ export class VitamuiMultiInputsComponent extends EditableFieldComponent implemen ngOnChanges(changes: SimpleChanges): void { if (changes.reset?.currentValue) { this.values = []; - this.originValue = this.values; this.onChange(this.values); this.control.reset(this.values); }