forked from extern/egroupware
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