mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +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
|
||||
{
|
||||
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