[CST-3782] item deletion on lookup disabled

This commit is contained in:
Alessandro Martelli
2021-03-10 17:11:53 +01:00
parent 28894f6764
commit 996d54f37e

View File

@@ -395,27 +395,6 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
size: 'lg' size: 'lg'
}); });
if (hasValue(this.model.value)) {
this.focus.emit({
$event: new Event('focus'),
context: this.context,
control: this.control,
model: this.model,
type: DynamicFormControlEventType.Focus
} as DynamicFormControlEvent);
this.model.value = null;
this.change.emit({
$event: new Event('change'),
context: this.context,
control: this.control,
model: this.model,
type: DynamicFormControlEventType.Change
} as DynamicFormControlEvent);
this.submissionService.dispatchSave(this.model.submissionId);
}
const modalComp = this.modalRef.componentInstance; const modalComp = this.modalRef.componentInstance;
if (hasValue(this.model.value) && !this.model.readOnly) { if (hasValue(this.model.value) && !this.model.readOnly) {