mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Avoid error if input node isn't created yet
This commit is contained in:
parent
9b00c9b170
commit
fd8f688e8b
@ -830,7 +830,7 @@ export class Et2Date extends Et2InputWidget(FormControlMixin(LitFlatpickr))
|
|||||||
*/
|
*/
|
||||||
findInputField() : HTMLInputElement
|
findInputField() : HTMLInputElement
|
||||||
{
|
{
|
||||||
return <HTMLInputElement>this._inputNode.shadowRoot.querySelector('input:not([type="hidden"])');
|
return <HTMLInputElement>this._inputNode?.shadowRoot?.querySelector('input:not([type="hidden"])');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user