Et2DateDuration: Fix value of "" caused NaN

This commit is contained in:
nathan 2023-05-03 08:41:20 -06:00
parent 6588759497
commit 9aa4c6f403

View File

@ -347,7 +347,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
set value(_value)
{
this._display = this._convert_to_display(parseFloat(_value));
this._display = this._convert_to_display(_value == "" ? 0 : parseFloat(_value));
this.requestUpdate();
}