Posted 2 August 2024, 2:50 pm EST
Hi Team,
We are getting by default zero (0) while using WjInputNumber, instead of empty value (for eg empty string).
to set value we are using below code
[code] @Input()
public override set value(value: number) {
if (value != this._value) {
try {
value = wjcCore.asInt(
value,
!this.isRequired || (value == null && this._value == null)
);
} catch (e) {}
value = _.toInteger(value); value = _.isNaN(value) ? 0 : value; if (value == null) { this._setText(''); } else if (!isNaN(value)) { let text = wjcCore.Globalize.format(value, this.format); this._setText(text); } }
}[/code]
Please resolve the issue so that instead of zero we can get empty value.