mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Fix JS error about can't find input box from init()
This commit is contained in:
parent
b8ffa91efe
commit
a0467b2e55
@ -394,7 +394,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
{
|
||||
let options = super.getOptions();
|
||||
|
||||
options.altFormat = this.egw()?.preference("dateformat") || "Y-m-d";
|
||||
options.altFormat = <string>this.egw()?.preference("dateformat") || "Y-m-d";
|
||||
options.altInput = true;
|
||||
options.allowInput = true;
|
||||
options.dateFormat = "Y-m-dT00:00:00\\Z";
|
||||
@ -627,12 +627,12 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(ValidateMixin(LitFl
|
||||
}
|
||||
|
||||
/**
|
||||
* The interactive (form) element. Override from Lion
|
||||
* The interactive (form) element.
|
||||
* @protected
|
||||
*/
|
||||
get _inputNode()
|
||||
get _inputNode() : HTMLElement
|
||||
{
|
||||
return /** @type {HTMLElementWithValue} */ (this.querySelector('et2-textbox[type="text"]'));
|
||||
return this.querySelector('et2-textbox');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user