RED-7275: Fixed calendar icon.

This commit is contained in:
Nicoleta Panaghiu 2023-08-18 12:10:31 +03:00
parent 7dca7b6b80
commit 2e65666a16
2 changed files with 10 additions and 2 deletions

View File

@ -87,6 +87,10 @@
iqser-dynamic-input {
margin-top: 0;
::ng-deep mat-datepicker-toggle {
bottom: -4px;
}
}
.workflow-input {
@ -106,6 +110,10 @@
font-size: 12px;
padding-left: 5px;
}
mat-datepicker-toggle {
bottom: -12px;
}
}
}

View File

@ -79,7 +79,7 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
@Debounce(50)
@HostListener('document:click')
clickOutside() {
if (this.isInEditMode && this.closedDatepicker) {
if (this.isInEditMode && !this.closedDatepicker) {
this.close();
}
}
@ -157,7 +157,7 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
});
return this._formBuilder.group(config, {
validators: control =>
(!control.get(this.fileAttribute.id)?.value?.trim().length && !this.fileAttributeValue) ||
(!this.isDate && !control.get(this.fileAttribute.id)?.value?.trim().length && !this.fileAttributeValue) ||
control.get(this.fileAttribute.id)?.value === this.fileAttributeValue
? { emptyString: true }
: null,