ngx-material-entity 15.2.6 → 15.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3379,12 +3379,11 @@ class NgxMatEntityInputComponent {
|
|
|
3379
3379
|
this.internalGetValidationErrorMessage = this.getValidationErrorMessage ?? this.defaultGetValidationErrorMessage;
|
|
3380
3380
|
this.internalIsReadOnly = this.isReadOnly ?? false;
|
|
3381
3381
|
this.type = EntityUtilities.getPropertyType(this.internalEntity, this.internalPropertyKey);
|
|
3382
|
-
if (this.validEmpty
|
|
3382
|
+
if (this.validEmpty === true) {
|
|
3383
3383
|
// eslint-disable-next-line max-len
|
|
3384
3384
|
const currentMetadata = ReflectUtilities.getMetadata('metadata', this.internalEntity, this.internalPropertyKey);
|
|
3385
3385
|
// eslint-disable-next-line max-len
|
|
3386
|
-
ReflectUtilities.defineMetadata('metadata', { ...currentMetadata, required:
|
|
3387
|
-
ReflectUtilities.defineMetadata('validEmpty', true, this.internalEntity, this.internalPropertyKey);
|
|
3386
|
+
ReflectUtilities.defineMetadata('metadata', { ...currentMetadata, required: false }, this.internalEntity, this.internalPropertyKey);
|
|
3388
3387
|
}
|
|
3389
3388
|
this.metadata = EntityUtilities.getPropertyMetadata(this.internalEntity, this.internalPropertyKey, this.type);
|
|
3390
3389
|
switch (this.type) {
|