@quadrel-enterprise-ui/framework 21.12.0 → 21.12.1

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.
@@ -12619,9 +12619,10 @@ class QdInputComponent {
12619
12619
  return this.control.getMaxLengthOrUndefined();
12620
12620
  }
12621
12621
  get valueAsList() {
12622
- const displayValue = this.inputType === 'number'
12623
- ? this.numberInputService.formatNumberForViewonly(this._value.value)
12624
- : this._value.value;
12622
+ const value = this._value.value;
12623
+ if (value == null || value === '')
12624
+ return [null];
12625
+ const displayValue = this.inputType === 'number' ? this.numberInputService.formatNumberForViewonly(value) : value;
12625
12626
  return [`${displayValue}${this._value.unit ? ' ' + this.getUnitLabel(this._value.unit) : ''}`];
12626
12627
  }
12627
12628
  ngOnInit() {