[Library | Trunk]: Input component if it is checkbox set false value on null
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60953 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
b600dc4756
commit
851f40da0b
|
@ -280,7 +280,7 @@ export class InputComponent implements OnInit, OnDestroy, OnChanges {
|
|||
}
|
||||
}));
|
||||
if (!this.formControl.value) {
|
||||
this.formControl.setValue('');
|
||||
this.formControl.setValue((this.type === "checkbox")?false:'');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue