empty strings or zero will be converted to null

This commit is contained in:
2024-09-11 11:49:47 +02:00
parent 83307684ee
commit fe759f953f
5 changed files with 19 additions and 17 deletions

View File

@@ -27,8 +27,8 @@ export class ValidatedInputComponent extends BaseInputComponent {
super(validationMessagesService);
}
onInputChange(event: Event): void {
this.value = event;
this.onChange(event);
onInputChange(event: string): void {
this.value = event?.length > 0 ? event : null;
this.onChange(this.value);
}
}