@vgip/meta-ui 2.1.2 → 2.1.4

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.
@@ -5430,7 +5430,7 @@ class FieldDatetime extends FieldAbstract {
5430
5430
  }
5431
5431
  const d = this.meta.default || this.meta.defaultValue;
5432
5432
  if (d && typeof (this.model) === 'undefined') {
5433
- const defaultValue = (typeof (d) === 'string') ? d : (d.id || d.value);
5433
+ const defaultValue = ((typeof (d) === 'string') || (typeof (d) === 'number')) ? d : (d.id || d.value);
5434
5434
  if (defaultValue || defaultValue === 0) {
5435
5435
  if (/^(date|time)/.test(this.meta.type || this.meta.subtype) && typeof (defaultValue) === 'string') {
5436
5436
  this.parent[this.meta.name] = relativeTimeBuilder(this.meta.type || this.meta.subtype, defaultValue, this.validations.step);