diff --git a/api/js/etemplate/Et2Date/Et2DateDuration.ts b/api/js/etemplate/Et2Date/Et2DateDuration.ts index 87189b5d5c..7a656a922f 100644 --- a/api/js/etemplate/Et2Date/Et2DateDuration.ts +++ b/api/js/etemplate/Et2Date/Et2DateDuration.ts @@ -286,7 +286,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement) return "" + (this.dataFormat === 'm' ? Math.round(value) : value); } - let val = this._durationNode.length ? this._durationNode[0].value.replace(',', '.') : ""; + let val = this._durationNode.length ? this._durationNode[0].value : ''; if(val === '') { return this.emptyNot0 ? '' : "0"; @@ -572,7 +572,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement) */ get _durationNode() : HTMLInputElement[] { - return this.shadowRoot ? this.shadowRoot.querySelectorAll("input") || [] : []; + return this.shadowRoot ? this.shadowRoot.querySelectorAll("et2-textbox") || [] : []; } @@ -581,7 +581,7 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement) */ get _formatNode() : HTMLSelectElement { - return this.shadowRoot ? this.shadowRoot.querySelector("select") : null; + return this.shadowRoot ? this.shadowRoot.querySelector("et2-select") : null; } }