Skip to content

Commit 677a859

Browse files
committed
only check valueMissing if required
1 parent 4a6740b commit 677a859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-image-cropper/input-image-cropper.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class UmbInputImageCropperElement extends UmbFormControlMixin<
6060
'valueMissing',
6161
() => this.requiredMessage ?? UMB_VALIDATION_EMPTY_LOCALIZATION_KEY,
6262
() => {
63-
return !this.value || (this.value.src === '' && this.value.temporaryFileId == null);
63+
return !!this.required && (!this.value || (this.value.src === '' && this.value.temporaryFileId == null));
6464
},
6565
);
6666
}

0 commit comments

Comments
 (0)