[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:
k.triantafyllou 2021-04-22 07:55:54 +00:00
parent b600dc4756
commit 851f40da0b
1 changed files with 1 additions and 1 deletions

View File

@ -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:'');
}
}