mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
Et2DateDuration: Fix value of "" caused NaN
This commit is contained in:
parent
16767d91a6
commit
d7f7c1fa03
@ -347,7 +347,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
|
|||||||
|
|
||||||
set value(_value)
|
set value(_value)
|
||||||
{
|
{
|
||||||
this._display = this._convert_to_display(parseFloat(_value));
|
this._display = this._convert_to_display(_value == "" ? 0 : parseFloat(_value));
|
||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user